summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuo Jinghua <sunmoon1997@gmail.com>2012-03-18 13:54:27 +0800
committerLuo Jinghua <sunmoon1997@gmail.com>2012-03-18 13:54:27 +0800
commitfd46f7f7a5b46a91a9113870c070f3edce878a90 (patch)
tree5cf4144e1edaf957118c5fa20310a786142c80bb
parent3f7831688430d2bee2d6a294046d6b9680827011 (diff)
Updated the syslog-ng.service
-rw-r--r--syslog-ng.service7
1 files changed, 6 insertions, 1 deletions
diff --git a/syslog-ng.service b/syslog-ng.service
index 81f0827..6f24d1c 100644
--- a/syslog-ng.service
+++ b/syslog-ng.service
@@ -3,7 +3,12 @@ Description=Next Generation System Logging Service
DefaultDependencies=false
[Service]
-ExecStart=/usr/sbin/syslog-ng --foreground
+Sockets=syslog.socket
+ExecStartPre=-/bin/systemctl stop systemd-kmsg-syslogd.service
+ExecStart=/usr/sbin/syslog-ng -F
+ExecReload=/bin/kill -HUP $MAINPID
+Sockets=syslog.socket
+StandardOutput=null
[Install]
WantedBy=sysinit.target