diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-07-31 20:59:59 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-07-31 20:59:59 +0000 |
commit | e265afd077bb0eafa45463acb03f316de0f8756c (patch) | |
tree | d8193167508d08b142a468db7caacfd2cfbe4d4f /etc/phpshellsessions/cvssync | |
parent | 13d219d74dd6ef50d8a09f00003d39e5541730d0 (diff) | |
download | pfsense-e265afd077bb0eafa45463acb03f316de0f8756c.zip pfsense-e265afd077bb0eafa45463acb03f316de0f8756c.tar.gz |
Launch helper script in background to relaunch lighty and friends.
Diffstat (limited to 'etc/phpshellsessions/cvssync')
-rw-r--r-- | etc/phpshellsessions/cvssync | 9 |
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"; } |