On 6/30/05, Adam Majer <[EMAIL PROTECTED]> wrote: > > 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.
Good idea, however what about if the user sets the 'RunAsDaemon' option in mrtg.conf (i.e. with cfgmaker ) and then wonders why it still does not work? Perhaps not introducing any more config files than the package already provides might be best? This is why I have been trying to get the script to check for that option - transparent as far as the user is concerned. I think I need sleep now 8-| .George.