Daemon starting
| From: | Gilles Nedostoupof | Date: | Mon, 22 Apr 2002 11:28:16 +0000 |
| Subject: | Daemon starting | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-93968@lists.php.net to get a copy of this message | ||
Hi all,
I'm looking for a simple method to start a linux daemon from a php script...
I've already tried to use sudo by giving rights to apache user to execute
some scripts from /etc/rc.d/init.d ; I do a exec ("sudo
/etc/rc.d/init.d/daemon start");
Sometimes the daemon startup, sometimes no... I need to re-run the script 2
or 3 times to start the daemon correctly.
(Same problem with stopping the daemon...)
Anybody have an idea?
Gilles.