George B. wrote: >On 6/30/05, Adam Majer <[EMAIL PROTECTED]> wrote: > > >>Thanks. I'll add it to the next upload but mrtg will not start as a >>daemon by default. >> >> > >1) Extract all 'RunAsDaemon' lines from config file. >2) Find a line that does not contain a '#' before the 'RunAsDaemon'. >3) If not found, then exit. > >I've spent the last few hours poking at it, but I did not get anywhere. :-( > > I think the best way is just add /etc/default/mrtg file with option,
# uncomment to run as a daemon # # RUN_AS_DAEMON="true" Then have in /etc/init.d/mrtg, . /etc/default/mrtg test "x$RUN_AS_DAEMON" == "xtrue" || exit 1; and something similar in the mrtg cronjob to prevent running if RUN_AS_DAEMON is set to true. - Adam -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]