View previous topic :: View next topic |
Author |
Message |
Red Sparrow Tux's lil' helper
Joined: 05 Feb 2004 Posts: 128 Location: Greeley, CO
|
Posted: Mon Apr 26, 2004 3:30 pm Post subject: Syslog-ng not logging again after a log rotate |
|
|
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 |
|
|
beesea Apprentice
Joined: 07 Mar 2003 Posts: 273
|
Posted: Mon Apr 26, 2004 10:10 pm Post subject: |
|
|
Maybe you should restart syslog-ng in the postrotate section? |
|
Back to top |
|
|
dstutz97 Tux's lil' helper
Joined: 14 Apr 2003 Posts: 80
|
Posted: Sat Aug 07, 2004 6:12 am Post subject: |
|
|
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 |
|
|
|