Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 432548 - app-admin/rsyslog-5.8.11 on lxc host not started
Summary: app-admin/rsyslog-5.8.11 on lxc host not started
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ultrabug
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-08-24 08:01 UTC by zunkree
Modified: 2012-08-24 14:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fixed init scripts for app-admin/rsyslog (rsyslog,985 bytes, text/plain)
2012-08-24 08:03 UTC, zunkree
Details
Fixed init scripts for app-admin/rsyslog (fixed) (rsyslog,986 bytes, text/plain)
2012-08-24 08:05 UTC, zunkree
Details

Note You need to log in before you can comment on or make changes to this bug.
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.
+