I would like to monitor 3 different daemon : postfix, amavisd (a virus
scanner acting as a content filter for postfix) and spamd (SpamAssassin, a
spam filtering daemon invoked by procmail acting as an SMTP server).
Can we be sure that a daemon is running if the .pid file exist?
Gilles.
-Or
Hello everybody,
I would like to know an easy way to check is a daemon is running.
What do you think is the best? Try to read a .pid file from the right
directory? Use sockets function to try to connect to the listening port of
the daemon? Grep the output of "ps -e" ?
Thanks for your help !
Gi
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
3 matches
Mail list logo