Bug 130629 - initlog returns spurious error status when starting certain daemons
Summary: initlog returns spurious error status when starting certain daemons
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Brock Organ
URL: http://gpsd.berlios.de/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-08-23 03:45 UTC by Eric Raymond
Modified: 2014-03-17 02:47 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-31 21:51:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Eric Raymond 2004-08-23 03:45:27 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040510

Description of problem:
While crafting init scripts for gpsd-2, I found that initlog 
consistently returns a spurious nonzero status when starting up 
gpsd.  The result is that the daemon function displays a FAILED
indication even though daemon startup was successful.




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

How reproducible:
Always

Steps to Reproduce:
1. Download and build gpsd from http://gpsd.berlios.de/
2. Run "initlog -q -c 'qpsd'; echo $?" as root.
3. Observe that the return status is nonzero.
4. Verify with ps ax that gpsd is running
    

Actual Results:  The daemon function spuriously indicated failure.


Expected Results:  A big green SUCCEEDED.


Additional info:

I am almost certain this symptom is related to bug #67232.  gpsd
forks itself after it starts up.  I compiled initscripts from 
current CVS HEAD, went in with gdb, and verified that the problem does
indeed appear to be in the waitpid() call in monitor().

Fix the damn SIGCHLD problem already.  Alan Cox diagnosed this one
two years ago.

Comment 1 Bill Nottingham 2005-03-31 21:51:36 UTC
Can't reproduce this on a current release. Note that initlog is deprecated and
will be removed from future releases.


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