logrotate, syslog-ng & cron
I have a question about setting up a cron job for logrotate.
In my logrotate.conf I have a postrotate command line to restart syslog-ng. Code:
postrotate In my cron, do I need the event to start syslog-ng again? This seems to be the only way I can get syslog-ng to write to the new logs after a logrotate. Code:
0 0 * * * root /opt/sbin/logrotate /opt/etc/logrotate.conf &>/dev/null |
`kill' + the -HUP signal should result in the process being restarted. HUP = HangUP i suppose originally used with modems, typically now kill -HUP means "reread the config file and start again".
Break the process into parts and test. E.g., does Quote:
try running the kill -HUP manually with that pid. then ps aux |grep syslog again. Did you get a new process id? I'm guessing syslog-ng is syslog - newsgroups, right? |
All times are GMT -5. The time now is 12:58 AM. |