Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentes Révision précédente | |||
informatique:applications:epure_moi_ces_logs_que_je_ne_serai_voir_logrotate [2023/02/10 23:48] – supprimée - modification externe (Unknown date) | informatique:applications:epure_moi_ces_logs_que_je_ne_serai_voir_logrotate [2023/02/10 23:48] (Version actuelle) – ↷ Page déplacée de informatique:linux:applications:epure_moi_ces_logs_que_je_ne_serai_voir_logrotate à informatique:applications:epure_moi_ces_logs_que_je_ne_serai_voir_logrotate Cédric ABONNEL | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ====== logrotate, épure-moi ces logs que je ne serai voir ====== | ||
+ | |||
+ | |||
+ | ===== Exemple pour Apache2 ===== | ||
+ | |||
+ | |||
+ | < | ||
+ | / | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 31 | ||
+ | notifempty | ||
+ | create 640 root | ||
+ | sharedscripts | ||
+ | postrotate | ||
+ | if / | ||
+ | / | ||
+ | fi; | ||
+ | endscript | ||
+ | prerotate | ||
+ | if [ -d / | ||
+ | run-parts / | ||
+ | fi; \ | ||
+ | endscript | ||
+ | } | ||
+ | |||
+ | / | ||
+ | su www-data www-data | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 2 | ||
+ | notifempty | ||
+ | create 640 www-data | ||
+ | sharedscripts | ||
+ | } | ||
+ | |||
+ | / | ||
+ | su www-data www-data | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 3 | ||
+ | notifempty | ||
+ | create 640 www-data | ||
+ | sharedscripts | ||
+ | } | ||
+ | |||
+ | / | ||
+ | su www-data www-data | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 30 | ||
+ | notifempty | ||
+ | create 640 www-data | ||
+ | sharedscripts | ||
+ | } | ||
+ | </ | ||