From: <Ral...@it...> - 2006-03-24 13:35:06
|
Thanks Lupe for reminding me of the partly buggy state of Net::Server. > -----Original Message----- > From: Lupe Christoph [mailto:lu...@lu...] > Sent: Friday, March 24, 2006 12:24 PM > To: Grothe, Ralph > Cc: mun...@li... > Subject: Re: [munin-users] Logfile Rotation >=20 >=20 > Quoting Ral...@it...: >=20 > > Now I wonder if any postrotate signalling or similar is necessary > > to cleanly > > have them released. >=20 > > Probably this is only necessary for munin-node's log, > > who as I found out is SIGHUP aware. >=20 > Correct. But the Code in Server::Fork has problems. Plus, old perls > are unreliable when it comes to signals. For FreeBSD4 which=20 > has sucn an > old perl I have written a script that starts munin-node if it failed > after the HUP signal. >=20 > Please see the FreeBSD section of the Muninn distribution,=20 > and the following > CPAN tickets: > http://rt.cpan.org/Public/Bug/Display.html?id=3D17090 (still unfixed) > http://rt.cpan.org/Public/Bug/Display.html?id=3D14155 >=20 > > Because it is logging less than the utilities I would think it be > > sufficient > > to rotate munin-node.log monthly with a postrotate command > > similar to >=20 > > kill -1 $(cat $(awk '$1~/^pid_file/{print$2}' > > /etc/opt/munin/munin-node.conf)) >=20 > > Can you confirm, or disagree? >=20 > That is correct. Just make sure that Net::Server is patched locally > until the author fixes this bug. >=20 > HTH, > Lupe Christoph >=20 > PS: I'm not sure if the FreeBSD section in 1.2.4 has everything I did > for the FreeBSD ports of 1.2.4. Be sure to check=20 > 1.2_current in SVN. > --=20 > | lu...@lu... | =20 > http://www.lupe-christoph.de/ | > | "... putting a mail server on the Internet without=20 > filtering is like | > | covering yourself with barbecue sauce and breaking into the=20 > Charity | > | Home for Badgers with Rabies. =20 > Michael Lucas |=20 >=20 |