From e469df3ddac7b357cc39187e31d806adb16cda4b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 31 Jul 2008 21:02:09 +0000 Subject: Alert user we are restarting lighty and friends in 5 seconds. --- etc/phpshellsessions/cvssync | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'etc') 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"; } -- cgit v1.1