Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 301137 - app-admin/syslog-ng-3.0.4 fails to start at boot
Summary: app-admin/syslog-ng-3.0.4 fails to start at boot
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-15 21:13 UTC by Luca Lesinigo
Modified: 2010-06-22 23:30 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Lesinigo 2010-01-15 21:13:26 UTC
On a freshly installed hardened/xen system, sysctl-ng-3.0.4 will not start at boot, but will do when trying manually. Further tests shows that it simply refuses to start the first time you try (either from the default runlevel or manually invoking the init.d script via commandline) but will start correctly the second time you try. This gets repeated after every reboot.

Profile hardened/linux/amd64/10.0, kernel 2.6.18.8 from Xen-3.4.2 package.

Example output with syslog-ng in default runlevel:
INIT: Entering runlevel: 3
 * Starting syslog-ng .../usr/sbin/syslog-ng already running.
 * Failed to start syslog-ng                      [ !! ]

If I remove it from the 'default' runlevel, reboot, and login as root, I can do the following:
srv7 ~ # ps aux | grep syslog | grep -v grep
srv7 ~ # /etc/init.d/syslog-ng status
 * status:  stopped
srv7 ~ # /etc/init.d/syslog-ng start
 * Starting syslog-ng .../usr/sbin/syslog-ng already running.
 * Failed to start syslog-ng                                            [ !! ]
srv7 ~ # /etc/init.d/syslog-ng start
 * Starting syslog-ng ...                                                 [ ok ]
srv7 ~ # /etc/init.d/syslog-ng status
 * status:  started

upgrading to (currently masked for testing) syslog-ng-3.0.5 seems to fix the problem, probably due to the change made for bug #295394

I don't really know who is thinking syslog-ng is already started after a reboot (start-stop-daemon? it uses no pid file for syslog-3.0.4...) and why.
Comment 1 Luca Lesinigo 2010-06-22 23:30:27 UTC
syslog-ng in portage is now at 3.0.6 stable on all archs, I can't reproduce the original issue any more.