diff options
3 files changed, 34 insertions, 2 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 new file mode 100644 index 0000000000..90d3ef2727 --- /dev/null +++ b/meta-oe/recipes-support/syslog-ng/files/syslog-ng.service-the-syslog-ng-service.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 0be9c08dd3f825e92fa02d4a08d8aff743109e61 Mon Sep 17 00:00:00 2001 | ||
2 | From: Li xin <lixin.fnst@cn.fujitsu.com> | ||
3 | Date: Wed, 17 Jun 2015 14:46:30 +0900 | ||
4 | Subject: [PATCH] syslog-ng.service: the syslog-ng service can not start | ||
5 | successfully,so modify it. | ||
6 | |||
7 | Upstream-Status: pending | ||
8 | |||
9 | Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> | ||
10 | --- | ||
11 | contrib/systemd/syslog-ng.service | 3 +-- | ||
12 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
13 | |||
14 | diff --git a/contrib/systemd/syslog-ng.service b/contrib/systemd/syslog-ng.service | ||
15 | index fc16f8d..8e09deb 100644 | ||
16 | --- a/contrib/systemd/syslog-ng.service | ||
17 | +++ b/contrib/systemd/syslog-ng.service | ||
18 | @@ -3,9 +3,8 @@ Description=System Logger Daemon | ||
19 | Documentation=man:syslog-ng(8) | ||
20 | |||
21 | [Service] | ||
22 | -Type=notify | ||
23 | Sockets=syslog.socket | ||
24 | -ExecStart=/usr/sbin/syslog-ng -F | ||
25 | +ExecStart=/usr/sbin/syslog-ng -F -p /var/run/syslogd.pid | ||
26 | ExecReload=/bin/kill -HUP $MAINPID | ||
27 | StandardOutput=null | ||
28 | Restart=on-failure | ||
29 | -- | ||
30 | 1.8.4.2 | ||
31 | |||
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc index b9ca880c6a..a990bf8e1f 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng.inc +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng.inc | |||
@@ -28,7 +28,7 @@ EXTRA_OECONF = " \ | |||
28 | --enable-dynamic-linking \ | 28 | --enable-dynamic-linking \ |
29 | --disable-sub-streams \ | 29 | --disable-sub-streams \ |
30 | --disable-pacct \ | 30 | --disable-pacct \ |
31 | --localstatedir=${localstatedir}/run/${BPN} \ | 31 | --localstatedir=${localstatedir}/lib/${BPN} \ |
32 | --sysconfdir=${sysconfdir}/${BPN} \ | 32 | --sysconfdir=${sysconfdir}/${BPN} \ |
33 | --with-module-dir=${libdir}/${BPN} \ | 33 | --with-module-dir=${libdir}/${BPN} \ |
34 | --with-sysroot=${STAGING_DIR_HOST} \ | 34 | --with-sysroot=${STAGING_DIR_HOST} \ |
@@ -67,7 +67,7 @@ do_install_append() { | |||
67 | install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${BPN} | 67 | install -m 755 ${WORKDIR}/initscript ${D}/${sysconfdir}/init.d/syslog.${BPN} |
68 | install -d ${D}/${sysconfdir}/default/volatiles/ | 68 | install -d ${D}/${sysconfdir}/default/volatiles/ |
69 | install -m 755 ${WORKDIR}/volatiles.03_syslog-ng ${D}/${sysconfdir}/default/volatiles/03_syslog-ng | 69 | install -m 755 ${WORKDIR}/volatiles.03_syslog-ng ${D}/${sysconfdir}/default/volatiles/03_syslog-ng |
70 | 70 | install -d ${D}/${localstatedir}/lib/${BPN} | |
71 | # Remove /var/run as it is created on startup | 71 | # Remove /var/run as it is created on startup |
72 | rm -rf ${D}${localstatedir}/run | 72 | rm -rf ${D}${localstatedir}/run |
73 | } | 73 | } |
diff --git a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.5.4.1.bb b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.5.4.1.bb index b54842030c..e8940c0abb 100644 --- a/meta-oe/recipes-support/syslog-ng/syslog-ng_3.5.4.1.bb +++ b/meta-oe/recipes-support/syslog-ng/syslog-ng_3.5.4.1.bb | |||
@@ -15,6 +15,7 @@ SRC_URI += " \ | |||
15 | file://dbifix.patch \ | 15 | file://dbifix.patch \ |
16 | file://rewrite-expr-grammar.ym-Free-up-token.patch \ | 16 | file://rewrite-expr-grammar.ym-Free-up-token.patch \ |
17 | file://logwriter-dont-allocate-a-new-buffer.patch \ | 17 | file://logwriter-dont-allocate-a-new-buffer.patch \ |
18 | file://syslog-ng.service-the-syslog-ng-service.patch \ | ||
18 | " | 19 | " |
19 | 20 | ||
20 | SRC_URI[md5sum] = "ff3bf223ebafbaa92b69a2d5b729f368" | 21 | SRC_URI[md5sum] = "ff3bf223ebafbaa92b69a2d5b729f368" |