
rgerhards at hq
Jul 23, 2012, 8:16 AM
Post #2 of 2
(208 views)
Permalink
|
> -----Original Message----- > From: rsyslog-bounces [at] lists [mailto:rsyslog- > bounces [at] lists] On Behalf Of Gerrard Geldenhuis > Sent: Monday, July 23, 2012 4:16 PM > To: rsyslog-users > Subject: [rsyslog] Multiple SIGHUPs > > Hi > > The default /etc/logrotate.d/syslog file looks as follows: > > /var/log/messages /var/log/secure /var/log/maillog /var/log/spooler > /var/log/boot.log /var/log/cron { > sharedscripts > postrotate > /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> > /dev/null || true > /bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> > /dev/null || true > endscript > } > > I want to add kern.log and daemon.log but would prefer to add these as > seperate entries in the logrotate.d directory. However if I do that it > will mean I send a SIGHUP signal to rsyslog at least 3 different times > and possibly more for other custom rsyslog related log files. SIGHUP just closes the log files, so other than a (very) slight performance hit for re-opening them, this is no issue. Rainer > > My question is: does it matter to rsyslog, how many times I send it a > SIGHUP? Is there a performance/"loss of logs" impact. The only reason I > am doing this is to keep customisation seperate from basic config but > if > the impact on rsyslog is detrimental then I would prefer to have > working > logs rather than pretty config files. > > Regards > > Gerrard Geldenhuis | IT Operations |WorldPay > M +44 772 448 7979 > gerrard.geldenhuis [at] worldpay > > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com/professional-services/ What's up with rsyslog? Follow https://twitter.com/rgerhards
|