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/08/23 10:01] ingo_wichmann [Neue Logdatei zu logrotate hinzufügen] |
admin_grundlagen:logrotate [2013/04/18 09:53] ingo_wichmann |
||
---|---|---|---|
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 12: | Zeile 12: | ||
postrotate | postrotate | ||
/etc/init.d/rsyslog reload > /dev/null | /etc/init.d/rsyslog reload > /dev/null | ||
+ | endscript | ||
+ | } | ||
+ | </file> | ||
+ | === Ubuntu 12.04 === | ||
+ | ''/etc/logrotate.d/ingo'' : | ||
+ | <file> | ||
+ | /var/log/ingo.log { | ||
+ | compress | ||
+ | size=+10 | ||
+ | postrotate | ||
+ | reload rsyslog >/dev/null 2>&1 || true | ||
endscript | endscript | ||
} | } | ||
</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 40: | ||
=== CentOS 6 === | === CentOS 6 === | ||
- | ''/etc/logrotate.d/ingo.log'' : | + | ''/etc/logrotate.d/ingo'' : |
<file> | <file> | ||
/var/log/ingo.log { | /var/log/ingo.log { |