How to restart WebGUI
-
Hello
Any body know how to correctly restart WebGUI from php?
I found thisflush(); send_event("service restart webgui");
But nothing to work.
Any ideas ? -
Well, this is what's in 2.1
cat /etc/rc.restart_webgui
#!/usr/local/bin/php -f require("config.inc"); require("functions.inc"); require("shaper.inc"); require("captiveportal.inc"); require("rrd.inc"); echo "Restarting webConfigurator..."; sigkillbyname("lighttpd", "KILL"); while (is_process_running("lighttpd")) { echo '.'; sleep(1); } system_webgui_start(); captiveportal_init_webgui(); enable_rrd_graphing(); echo " done.\n\n"; ?>
-
Wow, thanks!