[Bug 640336] New: network:dhcp: Init script "rc.dhcpd" not fully LSB compliant
https://bugzilla.novell.com/show_bug.cgi?id=640336 https://bugzilla.novell.com/show_bug.cgi?id=640336#c0 Summary: network:dhcp: Init script "rc.dhcpd" not fully LSB compliant Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: Other OS/Version: SLES 11 Status: NEW Severity: Normal Priority: P5 - None Component: 3rd party software AssignedTo: mt@novell.com ReportedBy: joschibrauchle@gmx.de QAContact: opensuse-communityscreening@forge.provo.novell.com Found By: --- Blocker: --- The init script "rc.dhcpd" is not fully LSB compliant. When the executable of configuration file of the dhcp server is not found in the beginning of the init script, it returns exit 5 or 6 respectively, which is not valid if the "status" parameter was given. The problem arises in a Heartbeat/Linux-HA configuration, where the Heartbeat service runs a ressource monitor using "rcdhcpd status" to check the status of this ressource. If the configuration file is not available at the time this command is run (e.g. when the configuration file is on an DRBD device which is not (yet) mounted), then the exit code of "6" will cause the Heartbeat monitor to fail, as this exit code is not expected from the "status" parameter! Here are the corresponding lines (98 to 107) in "rc.dhcpd": if ! [ -x "$DAEMON_BIN" ]; then if [ "$1" = "stop" ]; then exit 0; fi echo >&2 "$0: \"$DAEMON_BIN\" is not an executable file. Exiting." exit 5 fi if ! [ -r "$DAEMON_CONF" ] ; then if [ "$1" = "stop" ]; then exit 0; fi echo >&2 "$0: \"$DAEMON_CONF\" config file missed. Exiting." exit 6 fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c1
--- Comment #1 from Joschi Brauchle
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c2
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c3
Ludwig Nussel
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c4
--- Comment #4 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c5
--- Comment #5 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c6
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c9
manfred danzer
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c11
--- Comment #11 from Marius Tomaschewski
Actually, I just tested your patch today on our HA cluster. Works nicely! :-)
Thanks! I'm going to prepare fixed package in my collection/branch first [there are also another reports for the dhcp package I've to review]: http://download.opensuse.org/repositories/home:/mtomaschewski:/branches:/ope... and finally request a submit into :Update:Test. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c12
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c13
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c14
Swamp Workflow Management
https://bugzilla.novell.com/show_bug.cgi?id=640336
https://bugzilla.novell.com/show_bug.cgi?id=640336#c
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com