Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138426 - /etc/init.d/fancontrol can't understand when the daemon has died
Summary: /etc/init.d/fancontrol can't understand when the daemon has died
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 21:29 UTC by Robert Persson
Modified: 2006-06-28 23:17 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 Robert Persson 2006-06-28 21:29:01 UTC
I tried to stop and restart /etc/init.d/fancontrol and I couldn't because the daemon had already died and the init script couldn't accept this.

Here is what happened when I tried to restart the daemon:

zebedee linux # /etc/init.d/fancontrol restart
 * Stopping fancontrol ...
start-stop-daemon: warning: failed to kill 6716: No such process
1 pids were not killed
No process in pidfile `/var/run/fancontrol.pid' found running; none kill  [ !! ]

And when I deleted the pid file, this happened:

zebedee linux # /etc/init.d/fancontrol status
 * status:  started
zebedee linux # /etc/init.d/fancontrol start
 * WARNING:  "fancontrol" has already been started.
zebedee linux # /etc/init.d/fancontrol stop
 * Stopping fancontrol ...
No process in pidfile `/var/run/fancontrol.pid' found running; none kill  [ !! ]

I was only able to restart the daemon by first starting an instance of fancontrol from an xterm, writing that process's pid to the /var/run/fancontrol.pid, and, after that, finally  doing "/etc/init.d/fancontrol stop" and "/etc/init.d/fancontrol start"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-28 23:17:07 UTC
/etc/init.d/fancontrol zap start