carpman1

Member
Jan 25, 2003
15
0
151
Hello, i have been playing about with getting /usr/local/apache/access_log and error_log to rotate;

i created a file in /etc/logrotate.d/ which contained:

/usr/local/apache/logs/access_log {
missingok
postrotate
/usr/bin/killall -HUP httpd 2& /dev/null || true
endscript
}


/usr/local/apache/logs/error_log {
missingok
postrotate
/usr/bin/killall -HUP httpd 2& /dev/null || true
endscript
}

this does rotate logs but now i get an error email:
/etc/cron.daily/logrotate:

2: no process killed
/tmp/logrotate.JNmk8a: /dev/null: Permission denied
/tmp/logrotate.6iAlzd: /dev/null: Permission denied
2: no process killed


any ideas?

also will there be any problems setting logrotate conf to compress logs

thanks