Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Syslog-ng not logging again after a log rotate
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Red Sparrow
Tux's lil' helper
Tux's lil' helper


Joined: 05 Feb 2004
Posts: 128
Location: Greeley, CO

PostPosted: Mon Apr 26, 2004 3:30 pm    Post subject: Syslog-ng not logging again after a log rotate Reply with quote

I have syslog-ng set up to filter out all the cron messages into its own log file and I have logrotate set up to rotate that log file every week. However, whenever the log file rotates, the ne file is created successfully, but syslog-ng doesn't write to that file until I manually restart both syslog-ng and vixie-cron using their init.d scripts. This seems especially strange to me since syslog-ng continues to write all the messages to /dev/tty12. Here's the relevant lines from my config file. What am I missing here?

logrotate.conf:
Code:
/var/log/cron {
    rotate 4
    weekly
    create
    compress
    postrotate
        /bin/killall -HUP cron
    endscript
}


(- Steve -)
Back to top
View user's profile Send private message
beesea
Apprentice
Apprentice


Joined: 07 Mar 2003
Posts: 273

PostPosted: Mon Apr 26, 2004 10:10 pm    Post subject: Reply with quote

Maybe you should restart syslog-ng in the postrotate section?
Back to top
View user's profile Send private message
dstutz97
Tux's lil' helper
Tux's lil' helper


Joined: 14 Apr 2003
Posts: 80

PostPosted: Sat Aug 07, 2004 6:12 am    Post subject: Reply with quote

Webmin has a module for working with logrotate. It might help if you are having trouble editing the config files by hand.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum