Description of problem: According to https://fedoraproject.org/wiki/Packaging/SysVInitScript qpidd component init script have lsb compliance issues How reproducible: 100% Steps to Reproduce: 1.useradd testuserqa;\ su testuserqa -c 'service qpidd restart';echo "RETVAL:$?"\ userdel testuserqa 2. service qpidd;echo "RETVAL:$?" 3. service qpidd unimplemented;echo "RETVAL:$?" 4. service qpidd excess1 excess2;echo "RETVAL:$?" 5. service qpidd; 6. SERVICE=qpidd;qpidpath="$(which ${SERVICE})"; chmod 0444 ${qpidpath}; service ${SERVICE} restart; echo "RETVAL:$?";chmod 0755 ${qpidpath} Actual results: ad 1. "su" command return value is 0 ad 2. "service qpidd" command without arguments return value is 1 ad 3. "service qpidd unimplemented" command return value is 1 ad 4. "service qpidd excess1 excess2" command return value is 1 ad 5. "service qpidd" command help is not showing all script actions. Usage: /etc/init.d/qpidd {start|stop|restart|condrestart|status} - try-restart not mentioned in the usage - force-reload not mentioned in the usage - condrestart not implemented, but mentioned in the usage line\ should have the same behaviour as try-restart ad 6. initscript is not checking if service binary is executable Expected results: ad 1. "su" command expected return value 4 ad 2. "service qpidd" command expected value 2 ad 3. "service qpidd unimplemented" expected return value 2 or 3 ad 4. "service qpidd excess1 excess2" expected return value 2 ad 5. should show all implemented "actions" ad 6. should return 5 if qpidd binary file is not executable or missing
i found another unclaimed situation i would like to point out here - when "no-data-dir" or "data-dir" option is specified in qpidd.conf and qpidd is started as service, options from config file are "ignored"
Fixed in r939726. (The issue described in comment #1 is separate from this and is related to the inability to pass through env vars as described in bug 469919)
VERIFIED on RHEL 6 - i386 / x86_64: with /distribution/MRG/Messaging/qpid_test_initscript
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: Previously, the 'qpidd' component init script experienced LSB compliance issues. With this update, the aforementioned init script no longer experiences LSB compliance issues.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0773.html