From 9b83a42b50ade5e19d36ef7bb0af3f9497edbb42 Mon Sep 17 00:00:00 2001 From: Patrick Cao Huu Thien Date: Wed, 14 Dec 2022 16:57:55 +0100 Subject: [PATCH] limiter le service syslog a 100k/file x10 --- main.tf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.tf b/main.tf index e45af66..9e0e404 100644 --- a/main.tf +++ b/main.tf @@ -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", ] } }