dash/contrib/init
Jonas Schnelli 1017bbb84e
Merge #11419: Utils: Fix launchctl not being able to stop bitcoind
ab5bba778 Fix launchctl not being able to stop bitcoind (Alejandro Avilés)

Pull request description:

  `bitcoind` should not be launched as daemon from the Launch Agent. Otherwise, the process cannot be stopped from `launchctl stop`/`launchctl unload`.

  To reproduce the issue:

  ```console
  $ launchctl load ~/Library/LaunchAgents/org.bitcoin.bitcoind.plist
  $ pgrep -fla bitcoin
  60225 /usr/local/opt/bitcoin/bin/bitcoind
  $ launchctl unload ~/Library/LaunchAgents/org.bitcoin.bitcoind.plist
  ```

  Wait a few seconds and then run `pgrep` again:

  ```console
  $ pgrep -fla bitcoin
  60225 /usr/local/opt/bitcoin/bin/bitcoind
  ```

  The node is still running. This happens because Launch Agent is not supposed to run programs as daemons, since the agent makes sure they run in the background. Running them as daemons makes the Launch Agent lose control of the process and, so, it cannot be stopped.

Tree-SHA512: 5342e1a858e478a226a1db292f1b8f8666bb252ee951753b131902c325ea3d47592cf245298decb423ac658a3175761b54dc2e7df6feea5343d65ba255613f67
2020-02-08 23:33:25 -06:00
..
dashd.conf Merge #10680: Fix inconsistencies and grammar in various files 2020-01-10 10:33:53 -06:00
dashd.init Merge #945: More dash->dashcore 2016-08-19 05:46:30 -06:00
dashd.openrc Merge #10680: Fix inconsistencies and grammar in various files 2020-01-10 10:33:53 -06:00
dashd.openrcconf Merge #10451: contrib/init/bitcoind.openrcconf: Don't disable wallet by default 2018-01-26 12:59:29 +01:00
dashd.service Merge #10529: Improve bitcoind systemd service file 2020-01-22 09:11:34 -06:00
org.dash.dashd.plist Merge #11419: Utils: Fix launchctl not being able to stop bitcoind 2020-02-08 23:33:25 -06:00
README.md Merge #10036: Fix init README format to render correctly on github 2019-05-23 09:32:05 -05:00

Sample configuration files for:

SystemD: dashd.service
Upstart: dashd.conf
OpenRC:  dashd.openrc
         dashd.openrcconf
CentOS:  dashd.init
OS X:    org.dash.dashd.plist

have been made available to assist packagers in creating node packages here.

See doc/init.md for more information.