Project

General

Profile

« Previous | Next » 

Revision 8c0199ea

Added by Luiz Gustavo S. Costa about 14 years ago

Better management for reload lighttpd

View differences:

etc/rc.restart_webgui
8 8
require("captiveportal.inc");
9 9
require("rrd.inc");
10 10

  
11
mwexec("killall -9 lighttpd");
12

  
13 11
echo "Restarting webConfigurator...";
14 12

  
13
mwexec("killall -INT lighttpd");
14

  
15
while (exec("ps ax | grep lighttpd | grep -v grep")) {
16
        echo '.';
17
        sleep(1);
18
}
19

  
15 20
system_webgui_start();
16 21

  
17 22
captiveportal_init_webgui();

Also available in: Unified diff