Bug 886578
Summary: | start stop status undetected for /etc/init.d/firebird-superclassic | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | James Calfee <jcalfee> | ||||
Component: | firebird | Assignee: | Philippe Makowski <makowski.fedora> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | el6 | CC: | jcalfee, makowski.fedora, nphilipp | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-12-31 22:35:03 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
James Calfee
2012-12-12 15:26:05 UTC
I've looked at the attached init script and it doesn't seem to implement the chkconfig service status protocol properly: --- 8< --- status) if [ -f $pidfile ] then pid=`cat $pidfile` checkpid $pid RETVAL=$? [ $RETVAL -eq 0 ] && echo "$FULLNAME is running (pid $pid)" || echo "$FULLNAME is dead but pid file exists" else echo "$FULLNAME is stopped" fi ;; --- >8 --- It looks as if it would always return the exit code 0 (which means "running) when it should 3 for a stopped service. See http://fedoraproject.org/wiki/Packaging:SysVInitScript#Exit_Codes_for_the_Status_Action for details. In this case I guess adding the line 'RETVAL=3' after the 'echo "$FULLNAME is stopped"' line should be sufficient to make the default firebird service behave with system-config-services. Changing product/component accordingly. RETVAL=3 worked... We will email the Firebird group. Thank you.. fixed in upstream http://tracker.firebirdsql.org/browse/CORE-4011, I will rebuild the package soon firebird-2.5.2.26539.0-2.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/firebird-2.5.2.26539.0-2.el6 Package firebird-2.5.2.26539.0-2.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing firebird-2.5.2.26539.0-2.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2012-13778/firebird-2.5.2.26539.0-2.el6 then log in and leave karma (feedback). firebird-2.5.2.26539.0-2.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |