add blackmored.service
This commit is contained in:
@@ -1,22 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Bitcoin's distributed currency daemon
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=bitcoin
|
|
||||||
Group=bitcoin
|
|
||||||
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/var/lib/bitcoind/bitcoind.pid
|
|
||||||
ExecStart=/usr/bin/bitcoind -daemon -pid=/var/lib/bitcoind/bitcoind.pid \
|
|
||||||
-conf=/etc/bitcoin/bitcoin.conf -datadir=/var/lib/bitcoind -disablewallet
|
|
||||||
|
|
||||||
Restart=always
|
|
||||||
PrivateTmp=true
|
|
||||||
TimeoutStopSec=60s
|
|
||||||
TimeoutStartSec=2s
|
|
||||||
StartLimitInterval=120s
|
|
||||||
StartLimitBurst=5
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
||||||
30
contrib/init/blackmored.service
Normal file
30
contrib/init/blackmored.service
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Blackmore daemon
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/local/bin/blackmored -daemon -conf=/var/lib/.blackmore/blackmore.conf -datadir=/var/lib/.blackmore
|
||||||
|
ExecStop=/usr/local/bin/blackmored stop
|
||||||
|
User=blackmore
|
||||||
|
Group=blackmore
|
||||||
|
Restart=on-failure
|
||||||
|
|
||||||
|
# Because it's a daemon process
|
||||||
|
Type=forking
|
||||||
|
|
||||||
|
PIDFile=/var/lib/.bitmored/blackmored.pid
|
||||||
|
|
||||||
|
ProtectHome=true
|
||||||
|
ProtectSystem=full
|
||||||
|
PrivateTmp=true
|
||||||
|
PrivateDevices=true
|
||||||
|
MemoryDenyWriteExecute=true
|
||||||
|
NoNewPrivileges=true
|
||||||
|
|
||||||
|
TimeoutStopSec=60s
|
||||||
|
TimeoutStartSec=2s
|
||||||
|
StartLimitInterval=120s
|
||||||
|
StartLimitBurst=5
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user