limiter le service syslog a 100k/file x10

This commit is contained in:
Patrick CAO HUU THIEN 2022-12-14 16:57:55 +01:00
parent d30789f0a9
commit 9b83a42b50
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@ resource "null_resource" "alpine_postinstall" {
"echo '# stop and disable service crond'",
"rc-service crond stop",
"rc-update del crond",
#
"echo '# bricoler le service syslog'",
"echo '# limiter a 10 fichiers messages.* de 100k max' > /etc/conf.d/syslog",
"echo 'SYSLOGD_OPTS=\"-t -D -s100 -b10 -l6\"' >> /etc/conf.d/syslog",
"rc-service syslog restart",
]
}
}