Skip to content

Commit

Permalink
Don't write pid file when running under systemd
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mbiebl committed Jan 23, 2018
1 parent 86c08cb commit 6fafe7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rsyslog.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6fafe7c

Please sign in to comment.