[mrtg] Re: question about mrtg daemon

kelsey hudson khudson at tsss.org
Thu Oct 6 18:07:40 MEST 2005


oh yeah, you have to put that script in /etc/init.d -- i called it 
something like mrtg-daemon

then you can do:

service mrtg-daemon (start|stop|restart) etc.

if you want it to start at boot time add symbolic links to /etc/rcX.d 
where X is the runlevel into which you boot your machine. the symbolic 
links have the format:  SXXmrtg-daemon where XX is the order of 
precedence for this daemon. you most definitely want it after SXXnetwork 
... I'd run it as S98mrtg-daemon (but that's just me).

you'll also want to add symlinks K02mrtg-daemon to /etc/rc0.d and 
/etc/rc6.d (so mrtg gets killed when you reboot/halt the machine).

enjoy.
-kelsey

Tao Yaoning wrote:
> Hi, all
> Does anybody know how to make mrtg running like really service. I mean you
> can use command "service mrtg start" and "service mrtg stop" to start and
> stop mrtg. Now, I just use a script to run bunch of mrtg daemon at one time.
> But if I want to restart, I have to stop them one by one manually, it's so
> annony, especially when I test them !! :(
> 
> Tao
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://lists.ee.ethz.ch/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
> 

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



More information about the mrtg mailing list