Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 645842 - net-p2p/bitcoind-0.13.1 Cannot start or stop after daemon crashed
Summary: net-p2p/bitcoind-0.13.1 Cannot start or stop after daemon crashed
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Luke-Jr
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-26 19:00 UTC by Matthias
Modified: 2020-01-19 19:55 UTC (History)
1 user (show)

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 Matthias 2018-01-26 19:00:38 UTC
If the daemon is started with /etc/init.d/bitcoind start, the PID file is created. When the daemon crashes or will be shut down via the cli, the PID file is removed. The subsequent try to start the daemon again via the init script fails with the message that the daemon is already running. Trying to stop the daemon via the init script fails, too, saying the daemon isn't running. The init script tries to lookup the PID and fails because of the missing PID file. 

Reproducible: Always

Steps to Reproduce:
1. /etc/init.d/bitcoind start
2. bitcoin-cli --rpcpassword=<...> stop or kill the daemon manually
3. /etc/init.d/bitcoind start or /etc/init.d/bitcoind stop
Actual Results:  
After otherwise ending the daemon the init script doesn't work to start or (try to) stop the daemon. 

Expected Results:  
On "/etc/init.d/bitcoind stop" the init script should clean up everything it uses to assume the daemon is running also in case it cannot find and stop the daemon because it was crashed or stopped otherwise.