Commit 5320fc92 authored by Franco Fichtner's avatar Franco Fichtner

rc: kill php-cgi to deal with moved includes

parent 228eaee9
...@@ -87,7 +87,7 @@ case ${opmode} in ...@@ -87,7 +87,7 @@ case ${opmode} in
/usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0 /usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0
;; ;;
11) 11)
/usr/local/etc/rc.restart_webgui /usr/local/etc/rc.restart_webgui please
;; ;;
12) 12)
/usr/local/etc/rc.initial.firmware /usr/local/etc/rc.initial.firmware
......
...@@ -47,7 +47,7 @@ pkg upgrade -y ...@@ -47,7 +47,7 @@ pkg upgrade -y
echo echo
# restart the GUI after PHP changes have been applied # restart the GUI after PHP changes have been applied
/usr/local/etc/rc.restart_webgui /usr/local/etc/rc.restart_webgui please
echo echo
......
...@@ -459,9 +459,8 @@ if (!$dry_run) { ...@@ -459,9 +459,8 @@ if (!$dry_run) {
echo "\n DHCPD..."; echo "\n DHCPD...";
services_dhcpd_configure(); services_dhcpd_configure();
} }
if($restart_webgui) { if ($restart_webgui) {
echo "\n Restarting webConfigurator... "; mwexec('/usr/local/etc/rc.restart_webgui please');
mwexec("/usr/local/etc/rc.restart_webgui");
} }
} }
......
...@@ -11,6 +11,14 @@ echo "Restarting webConfigurator..."; ...@@ -11,6 +11,14 @@ echo "Restarting webConfigurator...";
killbyname("lighttpd"); killbyname("lighttpd");
if ($argc > 1) {
/*
* Force killing all php-cgi children as well
* to avoid hiccups with moved include files.
*/
killbyname("php-cgi");
}
while (is_process_running("lighttpd")) { while (is_process_running("lighttpd")) {
echo '.'; echo '.';
sleep(1); sleep(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment