Changeset View
Changeset View
Standalone View
Standalone View
doc/init.md
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
Installing this .service file consists of just copying it to | Installing this .service file consists of just copying it to | ||||
/usr/lib/systemd/system directory, followed by the command | /usr/lib/systemd/system directory, followed by the command | ||||
`systemctl daemon-reload` in order to update running systemd configuration. | `systemctl daemon-reload` in order to update running systemd configuration. | ||||
To test, run `systemctl start bitcoind` and to enable for system startup run | To test, run `systemctl start bitcoind` and to enable for system startup run | ||||
`systemctl enable bitcoind` | `systemctl enable bitcoind` | ||||
NOTE: When installing for systemd in Debian/Ubuntu the .service file needs to be copied to the /lib/systemd/system directory instead. | |||||
### OpenRC | ### OpenRC | ||||
Rename bitcoind.openrc to bitcoind and drop it in /etc/init.d. Double | Rename bitcoind.openrc to bitcoind and drop it in /etc/init.d. Double | ||||
check ownership and permissions and make it executable. Test it with | check ownership and permissions and make it executable. Test it with | ||||
`/etc/init.d/bitcoind start` and configure it to run on startup with | `/etc/init.d/bitcoind start` and configure it to run on startup with | ||||
`rc-update add bitcoind` | `rc-update add bitcoind` | ||||
### Upstart (for Debian/Ubuntu based distributions) | ### Upstart (for Debian/Ubuntu based distributions) | ||||
Upstart is the default init system for Debian/Ubuntu versions older than 15.04. If you are using version 15.04 or newer and haven't manually configured upstart you should follow the systemd instructions instead. | |||||
Drop bitcoind.conf in /etc/init. Test by running `service bitcoind start` | Drop bitcoind.conf in /etc/init. Test by running `service bitcoind start` | ||||
it will automatically start on reboot. | it will automatically start on reboot. | ||||
NOTE: This script is incompatible with CentOS 5 and Amazon Linux 2014 as they | NOTE: This script is incompatible with CentOS 5 and Amazon Linux 2014 as they | ||||
use old versions of Upstart and do not supply the start-stop-daemon utility. | use old versions of Upstart and do not supply the start-stop-daemon utility. | ||||
### CentOS | ### CentOS | ||||
Show All 22 Lines |