From 6fafe7c9965449e270fcd4d87eeda4689f0df1d6 Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Tue, 23 Jan 2018 22:44:45 +0100 Subject: [PATCH] Don't write pid file when running under systemd systemd does not require a pid file to track the rsyslogd process. By not writing a pid file, the rsyslog service can be locked down even further as it no longer needs write access to /var/run. --- rsyslog.service.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsyslog.service.in b/rsyslog.service.in index cb629ee735..9fc859420c 100644 --- a/rsyslog.service.in +++ b/rsyslog.service.in @@ -6,7 +6,7 @@ Documentation=http://www.rsyslog.com/doc/ [Service] Type=notify -ExecStart=@sbindir@/rsyslogd -n +ExecStart=@sbindir@/rsyslogd -n -iNONE StandardOutput=null Restart=on-failure