mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 01:24:38 +00:00
rc: kill php-cgi to deal with moved includes
This commit is contained in:
parent
228eaee94b
commit
5320fc92f9
@ -87,7 +87,7 @@ case ${opmode} in
|
||||
/usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0
|
||||
;;
|
||||
11)
|
||||
/usr/local/etc/rc.restart_webgui
|
||||
/usr/local/etc/rc.restart_webgui please
|
||||
;;
|
||||
12)
|
||||
/usr/local/etc/rc.initial.firmware
|
||||
|
||||
@ -47,7 +47,7 @@ pkg upgrade -y
|
||||
echo
|
||||
|
||||
# restart the GUI after PHP changes have been applied
|
||||
/usr/local/etc/rc.restart_webgui
|
||||
/usr/local/etc/rc.restart_webgui please
|
||||
|
||||
echo
|
||||
|
||||
|
||||
@ -459,9 +459,8 @@ if (!$dry_run) {
|
||||
echo "\n DHCPD...";
|
||||
services_dhcpd_configure();
|
||||
}
|
||||
if($restart_webgui) {
|
||||
echo "\n Restarting webConfigurator... ";
|
||||
mwexec("/usr/local/etc/rc.restart_webgui");
|
||||
if ($restart_webgui) {
|
||||
mwexec('/usr/local/etc/rc.restart_webgui please');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -11,6 +11,14 @@ echo "Restarting webConfigurator...";
|
||||
|
||||
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")) {
|
||||
echo '.';
|
||||
sleep(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user