summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-29 05:48:58 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-29 05:48:58 +0000
commit8b52f644bc9948f5b6823a9d40f5abec2f9b77a5 (patch)
treef639a11257e813cdfa5c89407c83098c4b1e1b47 /etc
parenta81565a7860bc236d0beea799c38d43047244de5 (diff)
downloadpfsense-8b52f644bc9948f5b6823a9d40f5abec2f9b77a5.zip
pfsense-8b52f644bc9948f5b6823a9d40f5abec2f9b77a5.tar.gz
Add option 11 - restart webgui
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.initial3
-rwxr-xr-xetc/rc.restart_webgui12
2 files changed, 15 insertions, 0 deletions
diff --git a/etc/rc.initial b/etc/rc.initial
index cd0c256..625d79d 100755
--- a/etc/rc.initial
+++ b/etc/rc.initial
@@ -94,6 +94,9 @@ case ${opmode} in
10)
/usr/sbin/tcpdump -n -e -ttt -i pflog0
;;
+11)
+ /etc/rc.restart_webgui
+ ;;
98)
/etc/rc.initial.store_config_to_removable_device
;;
diff --git a/etc/rc.restart_webgui b/etc/rc.restart_webgui
new file mode 100755
index 0000000..fc57f94
--- /dev/null
+++ b/etc/rc.restart_webgui
@@ -0,0 +1,12 @@
+#!/usr/local/bin/php -f
+
+<?php
+
+require("config.inc");
+require("functions.inc");
+
+mwexec("killall -9 lighttpd");
+
+system_webgui_start();
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud