Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 432548

Summary: app-admin/rsyslog-5.8.11 on lxc host not started
Product: Gentoo Linux Reporter: zunkree <zunkree>
Component: New packagesAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: dev-zero, zunkree
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Fixed init scripts for app-admin/rsyslog
Fixed init scripts for app-admin/rsyslog (fixed)

Description zunkree 2012-08-24 08:01:11 UTC
When used app-admin/rsyslog on lxc host and container, rsyslog not started on reboot. Rsyslog try start after containers, but in containers rsyslog alredy run and start-stop-daemon fail with:

* start-stop-daemon: /usr/sbin/rsyslogd is already running                                                                         

For fix in need to add pidfile check in start() in rsyslog init script.

Reproducible: Always
Comment 1 zunkree 2012-08-24 08:03:00 UTC
Created attachment 322074 [details]
Fixed init scripts for app-admin/rsyslog
Comment 2 zunkree 2012-08-24 08:05:41 UTC
Created attachment 322076 [details]
Fixed init scripts for app-admin/rsyslog (fixed)
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2012-08-24 13:35:04 UTC
Comment on attachment 322076 [details]
Fixed init scripts for app-admin/rsyslog (fixed)

--- files/5-stable/rsyslog.initd        2012-01-17 04:57:59.000000000 +0100
+++ -   2012-08-24 15:34:53.694718492 +0200
@@ -12,7 +12,7 @@
 start() {
        ebegin "Starting rsyslogd"
        start-stop-daemon \
-               --start --quiet --exec /usr/sbin/rsyslogd \
+               --start --quiet --exec /usr/sbin/rsyslogd --pidfile "${PIDFILE}" \
                -- ${RSYSLOG_OPTS} -i "${PIDFILE}" -f "${CONFIGFILE}"
        eend $?
 }
Comment 4 Ultrabug gentoo-dev 2012-08-24 14:40:40 UTC
Fixed, thanks guys !

+  24 Aug 2012; Ultrabug <ultrabug@gentoo.org> files/5-stable/rsyslog.initd,
+  files/6-stable/rsyslog.initd, -rsyslog-6.2.1.ebuild:
+  Fix init scripts #432548 thx to zunkree. Drop old.
+