rsyslog/rsyslog-unit.patch

29 lines
817 B
Diff

Index: rsyslog-8.33.1/rsyslog.service.in
===================================================================
--- rsyslog-8.33.1.orig/rsyslog.service.in
+++ rsyslog-8.33.1/rsyslog.service.in
@@ -1,14 +1,21 @@
[Unit]
Description=System Logging Service
Requires=syslog.socket
+Requires=var-run.mount
+After=var-run.mount
+Conflicts=syslog-ng.service syslogd.service
Documentation=man:rsyslogd(8)
Documentation=http://www.rsyslog.com/doc/
[Service]
Type=notify
-ExecStart=@sbindir@/rsyslogd -n -iNONE
+Environment=RSYSLOGD_PARAMS=
+EnvironmentFile=-/etc/sysconfig/syslog
+ExecStartPre=@sbindir@/rsyslog-service-prepare
+ExecStart=@sbindir@/rsyslogd -n -iNONE $RSYSLOGD_PARAMS
+ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
-Restart=on-failure
+Restart=on-abort
[Install]
WantedBy=multi-user.target