Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 23439

Summary: init script can't start service when crashed/killed
Product: Gentoo Linux Reporter: Petr Chyba <lami>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Petr Chyba 2003-06-25 00:38:48 UTC
When some service started from /etc/init.d crashes or is killed, it's impossible
to start it again using /etc/init.d script. Script thinks, that service is
already running and doesn't start it, neither it can be stopped

Reproducible: Always
Steps to Reproduce:
1. kill some started process (I use MySQL)
2. try to start/restart/stop this service - it fails
3. remove /mnt/.init.d/started/(service)
4. now it can be started

Actual Results:  
axa root # killall mysqld
axa root # ps ax | grep mysql
26032 pts/1    R      0:00 grep mysql
axa root # /etc/init.d/mysql status
 * status:  started
axa root # /etc/init.d/mysql restart
 * Stopping mysqld...                                                     [ !! ]

axa root # /etc/init.d/mysql start
 * WARNING:  "mysql" has already been started.
axa root # rm /mnt/.init.d/started/mysql 
axa root # /etc/init.d/mysql start
 * Starting mysqld...                                                     [ ok ]

Expected Results:  
Service should start/stop
Comment 1 SpanKY gentoo-dev 2003-06-25 14:49:34 UTC
`/etc/init.d/mysql zap`