0
When creating a systemd service file for bitcoind (for example https://github.com/bitcoin/bitcoin/blob/master/contrib/init/bitcoind.service), does it matter if Type=forking or Type=simple? What is the implication of one or the other in the light of how bitcoind starts and runs?
All other coins based on bitcoin share the same behaviour on this matter, or is this something that is likely to be modified by coin devs?
Running bitcoind without calling -daemon but having daemon=1 in the .conf is the same thing? – user2066480 – 2018-04-18T18:26:33.610
Could you expand on the consequences of combining Type=simple and running bitcoind with the -daemon flag? – user2066480 – 2018-04-18T18:51:08.490
Yes, -daemon and daemon=1 in the conf are the same thing. Running with Type=simple but -daemon means that once the process exits, systemd will think that it has stopped when in reality it is still running because a forked process was spawned in the background. Because it thinks the process stopped, it may attempt to restart it which could result in many forks of the bitcoind process (although those should exit once one bitcoind process exists). – Andrew Chow – 2018-04-18T20:08:11.013
So there are no consequences in terms of performance, stability, resource usage?... one or the other yields the same result, as long as the daemon flag agrees? – user2066480 – 2018-04-19T17:44:23.157
Yes, there is no performance difference. – Andrew Chow – 2018-04-19T17:59:24.640