From ec85c2e159d4311f62ba95bb1c517cefb96d1c6a Mon Sep 17 00:00:00 2001 From: Guohan Lu Date: Fri, 3 Apr 2020 10:42:16 +0000 Subject: [PATCH] [rsyslog]: setup correct argument for rsyslog.service in buster, by default, rsyslog service does not create pidfile which breaks monit configuration Signed-off-by: Guohan Lu --- build_debian.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_debian.sh b/build_debian.sh index fa45853e15..1b7024a304 100755 --- a/build_debian.sh +++ b/build_debian.sh @@ -366,6 +366,12 @@ EOF sudo sed -i 's/^ListenAddress ::/#ListenAddress ::/' $FILESYSTEM_ROOT/etc/ssh/sshd_config sudo sed -i 's/^#ListenAddress 0.0.0.0/ListenAddress 0.0.0.0/' $FILESYSTEM_ROOT/etc/ssh/sshd_config +## Config rsyslog +sudo augtool -r $FILESYSTEM_ROOT --autosave " +rm /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments +set /files/lib/systemd/system/rsyslog.service/Service/ExecStart/arguments/1 -n +" + ## Config sysctl sudo mkdir -p $FILESYSTEM_ROOT/var/core sudo augtool --autosave "