[mrtg] Re: Daemons and Forks

Stewart Tolhurst stewart at highwayone.net
Thu Feb 22 15:53:15 MET 2001



> One problem I've run into is that when this script restarts mrtg from cron
> it doesn't fork properly.  Even though my config specifies four forks, I
> end up with four mrtg processes and no children forking off one parent.

I think you'll find that MRTG doesn't fork if you run it from cron.  The
fork command only works if "RunAsDaemon: Yes" is in your config script.

What I find is that the child processes seem to die if they aren't required.

Stewart



--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list