summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-07-31 21:02:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-07-31 21:02:09 +0000
commite469df3ddac7b357cc39187e31d806adb16cda4b (patch)
tree0cf05d5de491a807e2f9cd1c6af04868913244ef /etc/phpshellsessions
parente265afd077bb0eafa45463acb03f316de0f8756c (diff)
downloadpfsense-e469df3ddac7b357cc39187e31d806adb16cda4b.zip
pfsense-e469df3ddac7b357cc39187e31d806adb16cda4b.tar.gz
Alert user we are restarting lighty and friends in 5 seconds.
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/cvssync7
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 0f3760c..76ea9cd 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -133,10 +133,10 @@ exec("cd $CODIR/pfSense ; tar -cpf - . | (cd / ; tar -Uxpf -)");
post_cvssync_commands();
-echo "===> Checkout complete. Your system is now sync'd. Scripting terminating.\n";
+echo "===> Checkout complete. Your system is now sync'd and PHP and Lighty will be restarted in 5 seconds.\n";
function post_cvssync_commands() {
- echo "Removing FAST-CGI temporary files...\n";
+ echo "===> Removing FAST-CGI temporary files...\n";
exec("find /tmp -name \"*php*\" -exec rm -rf {} \;");
exec("rm -rf /tmp/xcache/* 2>/dev/null");
@@ -147,7 +147,7 @@ function post_cvssync_commands() {
echo "===> Syncing system passwords...\n";
sync_webgui_passwords();
- echo "Restarting check_reload_status...\n";
+ echo "===> Restarting check_reload_status...\n";
exec("killall check_reload_status");
mwexec_bg("nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status");
@@ -162,6 +162,7 @@ function post_cvssync_commands() {
fwrite($fd, "sleep 5\n");
fwrite($fd, "killall php\n");
fwrite($fd, "touch /tmp/restart_webgui\n");
+ fclose($fd);
mwexec_bg("sh /tmp/restart_lighty");
echo "\n";
}
OpenPOWER on IntegriCloud