Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23439 - init script can't start service when crashed/killed
Summary: init script can't start service when crashed/killed
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-25 00:38 UTC by Petr Chyba
Modified: 2003-06-25 14:49 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 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`