Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung Nächste Überarbeitung Beide Seiten, nächste Überarbeitung | ||
admin_grundlagen:logrotate [2012/02/24 09:08] ingo_wichmann [Neue Logdatei zu logrotate hinzufügen] |
admin_grundlagen:logrotate [2012/08/23 10:04] ingo_wichmann [Neue Logdatei zu logrotate hinzufügen] |
||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
===== Neue Logdatei zu logrotate hinzufügen ===== | ===== Neue Logdatei zu logrotate hinzufügen ===== | ||
=== Debian 5.0 === | === Debian 5.0 === | ||
- | ''/etc/logrotate.d/ingo.log'' : | + | ''/etc/logrotate.d/ingo'' : |
<file> | <file> | ||
/var/log/ingo.log { | /var/log/ingo.log { | ||
Zeile 16: | Zeile 16: | ||
</file> | </file> | ||
=== SuSE === | === SuSE === | ||
- | ''/etc/logrotate.d/ingo.log'' : | + | ''/etc/logrotate.d/ingo'' : |
<file> | <file> | ||
/var/log/ingo.log { | /var/log/ingo.log { | ||
Zeile 29: | Zeile 29: | ||
=== CentOS 6 === | === CentOS 6 === | ||
- | ''/etc/logrotate.d/ingo.log'' : | + | ''/etc/logrotate.d/ingo'' : |
<file> | <file> | ||
/var/log/ingo.log { | /var/log/ingo.log { | ||
size=+10 | size=+10 | ||
dateformat %Y%m%d-%s | dateformat %Y%m%d-%s | ||
+ | sharedscripts | ||
postrotate | postrotate | ||
- | service rsyslog reload | + | /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true |
endscript | endscript | ||
} | } |