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?


Reply via email to