Yes, it is supposed to be rotated weekly, but actually rotates daily
because size of logfile must be less than 200k.
cat /etc/logrotate.d/slimserver
/var/log/slimserver/slimserver.log {
weekly
rotate 5
size 200k
compress
missingok
prerotate
invoke-rc.d slimserver stop || true
endscript
postrotate
# Only starts slimserver if it is supposed to
# run in the current run-level
invoke-rc.d slimserver start || true
endscript
}
--
sbbr
------------------------------------------------------------------------
sbbr's Profile: http://forums.slimdevices.com/member.php?userid=3541
View this thread: http://forums.slimdevices.com/showthread.php?t=38440
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix