Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 11942 - init scripts apparantly confused about if a service is running
Summary: init scripts apparantly confused about if a service is running
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-11 01:33 UTC by Garen
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Garen 2002-12-11 01:33:34 UTC
For some reason apparantly something in /sbin/runscript.sh doesn't account for 
a process that doesn't start up properly.

For example, when I setup bind9 it seemed to work fine - but when I imported my 
old configuration and shut it down and restarted it, named encountered a 
problem because it didn't have permission to read my named.conf file - so it 
exited with a fatal error (and wrote to /var/log/daemon.log).  

However, /etc/init.d/named status still reported it running, and attempting to 
do /etc/init.d/named stop would always fail:

init.d # ./named stop      
 * Stopping 
named...                                                                        
  [ !! ]

And then curiously:

init.d # ./named start
 * WARNING:  "named" has already been started.

This happens even when no named.pid exists, which I'd think should be the 
mechanism for detecting whether or not it's running.  The only way I got around 
this was by manually removing the "named" symlink in /mnt/init.d/started and 
then restarting (wth?).
Comment 1 Quequero 2002-12-11 06:16:58 UTC
The same thing happened to me with apache 1.3.27...
Que
Comment 2 SpanKY gentoo-dev 2002-12-11 13:10:31 UTC
`/etc/init.d/named zap` 
Comment 3 Garen 2002-12-11 13:17:43 UTC
It doesn't help that /etc/init.d/named doesn't say anything about zap.  Where 
is "zap" documented that you'd know it does that?

Maybe this should be moved to a documentation bug. :)
Comment 4 SpanKY gentoo-dev 2002-12-11 13:29:04 UTC
run any init.d script w/out parameters 
Comment 5 Garen 2002-12-11 13:32:16 UTC
Ah, geez, there it is.  I guess I never thought of doing that as its only 
printed start/stop/restart/reload on my other systems.  thx.