I had done some more looking around and found a tip and they put this...

/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

I looked for any rsyslog.pid that was running on the server and when it went 
looking for it. It couldn't find one. When I did a ps -aux |grep rsyslog it 
came up with a pid number for /var/run/syslogd.pid

Kinda strange it reverts to that. Anywho I changed it to that and going to see 
if that works. One question...what redirects are you referring to?



Josh







-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of David Lang
Sent: Thursday, April 25, 2013 2:48 PM
To: rsyslog-users
Subject: Re: [rsyslog] rsyslog and logrotate

On Thu, 25 Apr 2013, Josh Bitto wrote:

> I was doing some daily routine stuff and noticed that when my log files 
> rotated the new files were created, but nothing was being written to them. I 
> did some googling and to my knowledge I have the scripting right in the 
> /etc/logrotate.d/syslog file correct.
>
> /list of rotated files
> {
>    weekly
>    notifempty
>    missingok
>    create
>    delaycompress
>    compress
>    sharedscripts
>    rotate 24
>        /reload rsyslog >/dev/null 2>&1 || true
>    endscript
> }
>
> Am I missing something? When I manually restart rsyslog the new files already 
> there have stuff written and it goes back to normal....

Try doing a kill -HUP of rsyslog after a rotate has taken place and see if that 
makes the new files start showing data.

If so, then the logrotate is not properly issuing the restart.

you may want to eliminate the redirects in your config and see if it given you 
any errors when it restarts.

David Lang
_______________________________________________
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 NOTE WELL: This is 
a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond our 
control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
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
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to