2017-06-05 10:38:42 +02:00
|
|
|
# It is not recommended to modify this file in-place, because it will
|
|
|
|
# be overwritten during package upgrades. If you want to add further
|
|
|
|
# options or overwrite existing ones then use
|
|
|
|
# $ systemctl edit bitcoind.service
|
|
|
|
# See "man systemd.service" for details.
|
|
|
|
|
|
|
|
# Note that almost all daemon options could be specified in
|
|
|
|
# /etc/bitcoin/bitcoin.conf
|
|
|
|
|
2014-07-23 20:10:01 +02:00
|
|
|
[Unit]
|
2017-06-05 10:38:42 +02:00
|
|
|
Description=Bitcoin daemon
|
2014-07-23 20:10:01 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2017-06-05 10:38:42 +02:00
|
|
|
ExecStart=/usr/bin/bitcoind -daemon -conf=/etc/bitcoin/bitcoin.conf -pid=/run/bitcoind/bitcoind.pid
|
|
|
|
# Creates /run/bitcoind owned by bitcoin
|
|
|
|
RuntimeDirectory=bitcoind
|
2014-07-31 17:56:17 +02:00
|
|
|
User=bitcoin
|
2014-07-23 20:10:01 +02:00
|
|
|
Type=forking
|
2017-06-05 10:38:42 +02:00
|
|
|
PIDFile=/run/bitcoind/bitcoind.pid
|
|
|
|
Restart=on-failure
|
2014-07-23 20:10:01 +02:00
|
|
|
PrivateTmp=true
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|