Hi,
I'm trying to write a webinterface that allows helldesk to restart a daemon
in case it crashes.
I use the following commands:
if ($action == "restartsnrdaemon") {
print "<p>Stopping old daemon processes<br>\n";
exec("killall snrdaemon.pl");
print "<p>Starting the process again...<br>\n";
shell_exec("perl /var/www/nocbeamer/includes/snrdaemon.pl");
}
It works just fine, the daemon is started, but apache does not respond any
more in the current session. Only if I close the brower and restart it, I
can access the website again. Does anyone know of a good workaround?
Thanks in advance,
Daniel
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php