rsyslog/rsyslog-unit.patch
Andreas Stieger 61396614da Accepting request 163983 from home:elvigia:branches:Base:System
- Fix systemd units to do exactly what is documented as 
 required --> http://www.freedesktop.org/wiki/Software/systemd/syslog
 In particular, it must not mess with the ordering of syslog.target
 this is done by removing the custom unit and adapting the upstream
 one with openSUSE additions (rsyslog-unit.patch)

OBS-URL: https://build.opensuse.org/request/show/163983
OBS-URL: https://build.opensuse.org/package/show/Base:System/rsyslog?expand=0&rev=132
2013-04-14 16:56:48 +00:00

23 lines
619 B
Diff

Index: rsyslog-7.2.5/rsyslog.service.in
===================================================================
--- rsyslog-7.2.5.orig/rsyslog.service.in
+++ rsyslog-7.2.5/rsyslog.service.in
@@ -1,9 +1,16 @@
[Unit]
Description=System Logging Service
+Requires=var-run.mount
+Requires=syslog.socket
+After=var-run.mount
+Conflicts=syslog-ng.service syslogd.service
[Service]
+Environment=RSYSLOGD_PARAMS=
+ExecStartPre=@sbindir@/rsyslog-service-prepare
+EnvironmentFile=-/etc/sysconfig/syslog
ExecStart=@sbindir@/rsyslogd -n
-Sockets=syslog.socket
+ExecReload=/bin/kill -HUP $MAINPID
StandardOutput=null
[Install]