summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch')
-rw-r--r--meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch38
1 files changed, 26 insertions, 12 deletions
diff --git a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
index 6b30c20c15..dc2ba167af 100644
--- a/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
+++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch
@@ -7,25 +7,39 @@ Subject: [PATCH] syslog-ng.service: the syslog-ng service can not start
7Upstream-Status: pending 7Upstream-Status: pending
8 8
9Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> 9Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
10Updated-by: Andrej Valek <andrej.valek@siemens.com>
10--- 11---
11 contrib/systemd/syslog-ng.service | 5 ++--- 12 contrib/systemd/syslog-ng.service | 5 ++---
12 1 file changed, 2 insertion(+), 3 deletions(-) 13 1 file changed, 2 insertion(+), 3 deletions(-)
13 14
14diff --git a/contrib/systemd/syslog-ng.service b/contrib/systemd/syslog-ng.service 15diff --git a/contrib/systemd/syslog-ng@.service b/contrib/systemd/syslog-ng@.service
15index fc16f8d..8e09deb 100644 16index a28640e..93aec94 100644
16--- a/contrib/systemd/syslog-ng.service 17--- a/contrib/systemd/syslog-ng@.service
17+++ b/contrib/systemd/syslog-ng.service 18+++ b/contrib/systemd/syslog-ng@.service
18@@ -4,8 +4,8 @@ Description=System Logger Daemon 19@@ -7,8 +7,8 @@ Conflicts=emergency.service emergency.target
19
20 [Service]
21 Type=notify 20 Type=notify
22-ExecStart=/usr/sbin/syslog-ng -F $SYSLOGNG_OPTS 21 EnvironmentFile=-/etc/default/syslog-ng@%i
22 EnvironmentFile=-/etc/sysconfig/syslog-ng@%i
23-ExecStart=/usr/sbin/syslog-ng -F $OTHER_OPTIONS --cfgfile $CONFIG_FILE --control $CONTROL_FILE --persist-file $PERSIST_FILE --pidfile $PID_FILE
23-ExecReload=/bin/kill -HUP $MAINPID 24-ExecReload=/bin/kill -HUP $MAINPID
24+ExecStart=@SBINDIR@/syslog-ng -F $SYSLOGNG_OPTS -p @LOCALSTATEDIR@/run/syslogd.pid 25+ExecStart=@SBINDIR@/syslog-ng -F $OTHER_OPTIONS --cfgfile $CONFIG_FILE --control $CONTROL_FILE --persist-file $PERSIST_FILE --pidfile $PID_FILE
25+ExecReload=@BASEBINDIR@/kill -HUP $MAINPID 26+ExecReload=@BASEBINDIR@/kill -HUP $MAINPID
26 EnvironmentFile=-/etc/default/syslog-ng
27 EnvironmentFile=-/etc/sysconfig/syslog-ng
28 StandardOutput=journal 27 StandardOutput=journal
28 StandardError=journal
29 Restart=on-failure
30diff --git a/contrib/systemd/syslog-ng@default b/contrib/systemd/syslog-ng@default
31index 02da288..3a8215d 100644
32--- a/contrib/systemd/syslog-ng@default
33+++ b/contrib/systemd/syslog-ng@default
34@@ -1,5 +1,5 @@
35 CONFIG_FILE=/etc/syslog-ng.conf
36-PERSIST_FILE=/var/lib/syslog-ng/syslog-ng.persist
37-CONTROL_FILE=/var/lib/syslog-ng/syslog-ng.ctl
38-PID_FILE=/var/run/syslog-ng.pid
39+PERSIST_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.persist
40+CONTROL_FILE=@LOCALSTATEDIR@/lib/syslog-ng/syslog-ng.ctl
41+PID_FILE=@LOCALSTATEDIR@/run/syslog-ng.pid
42 OTHER_OPTIONS="--enable-core"
43
29-- 44--
301.8.4.2 451.8.4.2
31