[mrtg] Re: ANNOUCNE 2.9.6
Brian E. Seppanen
seppy at chartermi.net
Wed Dec 13 16:20:04 MET 2000
I've tried 2.9.6 in place of 2.9.5 and I still had problems with the pid
file when called as so
su - mrtg -c "cd /home/mrtg/log; /usr/bin/nohup /usr/local/mrtg/bin/mrtg /home/mrtg/main.conf
This works with 2.9.4. We have it configure in /home/mrtg/main.conf to
run as a daemon. But we use /usr/bin/nohup (as you can see above) so that
we can capture messages. messages are sent to ~/log/nohup.out.
I tried integrating mrtg into the redhat start sequence. See the attached
file. It seems to work partially. The reason I want to do this is
redhat's init sequence export certain functions to their startup programs.
Anything started with these functions has its output sent to syslog via
/sbin/initlog.
However, it doesn't quite work yet. I can start it up fine. It writes a
pid to /home/mrtg. Shortly afterwards it dissapears from process listings
no core, and no syslog message.
A couple of questions. Could I modify the script to create the pid in
/var/run as redhat expects to find it there? A shutdown script won't
work without setting it up that way. Is there a command line switch for
specifying pid file directory? Any suggestions?
BTW: If I run it as /usr/local/mrtg-2.9.6/bin/mrtg --user=mrtg --group=mrtg /home/mrtg/main.conf
it runs fine all of the messages are spewed to the terminal from which I
started it.
Another question is why would it dissapear?
I'd appreciate any help.
Thanks,
Brian Seppanen
On Tue, 12 Dec 2000, Tobias Oetiker wrote:
> To: MRTG Mailinglist <mrtg at list.ee.ethz.ch>,
> MRTG Announcements <mrtg-announce at list.ee.ethz.ch>
> From: Tobias Oetiker <oetiker at ee.ethz.ch>
> Subject: [mrtg] ANNOUCNE 2.9.6
>
>
> Folks,
>
> Release Fast, Release Often ...
>
> 2.9.6 fixes the ugly bugs introduced in rateup (it is rateup 2.9.4
> again) and finally gets that *.pid file right which gets created
> when you run mrtg in daemon mode ...
>
> cheers
> tobi
>
>
>
--
Brian Seppanen
Charter Communications
Regional Data Center 906-228-3100 ext 23
Marquette, MI seppy at chartermi.net
-- Attached file removed by Listar and put at URL below --
-- Type: TEXT/PLAIN
-- Size: 783 bytes
-- URL : http://www.ee.ethz.ch/~slist/pantomime/mrtg.new
--
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