Bug 886578 - start stop status undetected for /etc/init.d/firebird-superclassic
Summary: start stop status undetected for /etc/init.d/firebird-superclassic
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: firebird
Version: el6
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Philippe Makowski
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2012-12-12 15:26 UTC by James Calfee
Modified: 2012-12-31 22:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-12-31 22:35:03 UTC
Type: Bug

Attachments (Terms of Use)
/etc/init.d/firebird-superclassic (2.49 KB, application/octet-stream)
2012-12-12 15:26 UTC, James Calfee
no flags Details

Description James Calfee 2012-12-12 15:26:05 UTC
Created attachment 662401 [details]

Description of problem:

This may be one of those services:
Some services are incredibly hard to detect if they are running or not. While there are workarounds present to deal with these, it can't be guaranteed that they're detected properly. Please file bugs against the system-config-services component at http://bugzilla.redhat.com if you encounter such services. 

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Install epel repository: 

rpm -Uvh http://mirrors.kernel.org/fedora-epel/6/x86_64/epel-release-6-7.noarch.rpm

2. Install Firebird 

yum install libncurses.so.5
yum install firebird-superclassic.x86_64


Start the process by running "/etc/init.d/firebird-superclassic start" then run system-config-services and try to start/stop "firebird-superclassic."

Comment 2 Nils Philippsen 2012-12-13 11:30:56 UTC
I've looked at the attached init script and it doesn't seem to implement the chkconfig service status protocol properly:

--- 8< ---
	if [ -f $pidfile ]
		pid=`cat $pidfile`
		checkpid $pid
		[ $RETVAL -eq 0 ] && echo "$FULLNAME is running (pid $pid)" || echo "$FULLNAME is dead but pid file exists"
		echo "$FULLNAME is stopped"
--- >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.

Comment 3 James Calfee 2012-12-13 13:39:57 UTC

worked... We will email the Firebird group.  
Thank you..

Comment 4 Philippe Makowski 2012-12-14 10:18:08 UTC
fixed in upstream http://tracker.firebirdsql.org/browse/CORE-4011, I will rebuild the package soon

Comment 5 Fedora Update System 2012-12-14 13:50:37 UTC
firebird- has been submitted as an update for Fedora EPEL 6.

Comment 6 Fedora Update System 2012-12-14 22:32:26 UTC
Package firebird-
* 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-'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2012-12-31 22:35:05 UTC
firebird- has been pushed to the Fedora EPEL 6 stable repository.  If problems still persist, please make note of it in this bug report.

Note You need to log in before you can comment on or make changes to this bug.