syslog: clean messages

This commit is contained in:
Patrick CAO HUU THIEN 2022-12-14 18:30:39 +01:00
parent 9b83a42b50
commit 5ba110b126
1 changed files with 3 additions and 1 deletions

View File

@ -29,9 +29,11 @@ resource "null_resource" "alpine_postinstall" {
"rc-update del crond", "rc-update del crond",
# #
"echo '# bricoler le service syslog'", "echo '# bricoler le service syslog'",
"rc-service syslog stop",
"echo '# limiter a 10 fichiers messages.* de 100k max' > /etc/conf.d/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", "echo 'SYSLOGD_OPTS=\"-t -D -s100 -b10 -l6\"' >> /etc/conf.d/syslog",
"rc-service syslog restart", "rm -f /var/log/messages",
"rc-service syslog start",
] ]
} }
} }