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
Created attachment 322074 [details] Fixed init scripts for app-admin/rsyslog
Created attachment 322076 [details] Fixed init scripts for app-admin/rsyslog (fixed)
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 $? }
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. +