summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-31 20:59:59 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-31 20:59:59 +0000
commite265afd077bb0eafa45463acb03f316de0f8756c (patch)
treed8193167508d08b142a468db7caacfd2cfbe4d4f /etc/phpshellsessions
parent13d219d74dd6ef50d8a09f00003d39e5541730d0 (diff)
downloadpfsense-e265afd077bb0eafa45463acb03f316de0f8756c.zip
pfsense-e265afd077bb0eafa45463acb03f316de0f8756c.tar.gz
Launch helper script in background to relaunch lighty and friends.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/cvssync9
1 files changed, 7 insertions, 2 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index a50a74c..0f3760c 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -157,6 +157,11 @@ function post_cvssync_commands() {
echo "\n";
echo "===> Signaling PHP and Lighty restart...";
- mwexec_bg("sleep 5 ; killall php ; touch /tmp/restart_webgui");
-
+ $fd = fopen("/tmp/restart_lighty", "w");
+ fwrite($fd, "#!/bin/sh\n");
+ fwrite($fd, "sleep 5\n");
+ fwrite($fd, "killall php\n");
+ fwrite($fd, "touch /tmp/restart_webgui\n");
+ mwexec_bg("sh /tmp/restart_lighty");
+ echo "\n";
}
OpenPOWER on IntegriCloud