summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am3
-rw-r--r--rsyslog.service.in3
-rw-r--r--rsyslog.socket8
3 files changed, 2 insertions, 12 deletions
diff --git a/Makefile.am b/Makefile.am
index 9493e373..f699cc46 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -44,9 +44,6 @@ endif
#
if HAVE_SYSTEMD
-dist_systemdsystemunit_DATA = \
- rsyslog.socket
-
nodist_systemdsystemunit_DATA = \
rsyslog.service
diff --git a/rsyslog.service.in b/rsyslog.service.in
index 2bcde528..03db596e 100644
--- a/rsyslog.service.in
+++ b/rsyslog.service.in
@@ -2,9 +2,10 @@
Description=System Logging Service
[Service]
+ExecStartPre=/bin/systemctl stop systemd-kmsg-syslogd.service
ExecStart=@sbindir@/rsyslogd -n -c5
ExecReload=/bin/kill -HUP $MAINPID
+Sockets=syslog.socket
[Install]
WantedBy=multi-user.target
-Also=rsyslog.socket
diff --git a/rsyslog.socket b/rsyslog.socket
deleted file mode 100644
index 0cd86054..00000000
--- a/rsyslog.socket
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=Syslog Socket
-
-[Socket]
-ListenDatagram=/dev/log
-
-[Install]
-WantedBy=sockets.target