Dies ist eine alte Version des Dokuments!
Vorraussetzung: cron
/etc/logrotate.conf
/etc/logrotate.d/*
/etc/logrotate.d/ingo.log
:
/var/log/ingo.log { compress size=+10 postrotate /etc/init.d/rsyslog reload > /dev/null endscript }
/etc/logrotate.d/ingo.log
:
/var/log/ingo.log { compress size=+10 nodateext postrotate /etc/init.d/syslog restart > /dev/null endscript }
/etc/logrotate.d/ingo.log
:
/var/log/ingo.log { size=+10 dateformat %Y%m%d-%s sharedscripts postrotate /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true endscript }
echo 12345678901234567890 >> /var/log/ingo.log logrotate /etc/logrotate.conf ls /var/log/ingo.log*