2019-06-15 23:02:44 +00:00
|
|
|
# BTC RPC Explorer service
|
|
|
|
# /etc/systemd/system/btc_rpc_explorer.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=BTC RPC Explorer
|
|
|
|
Wants=bitcoind.service
|
|
|
|
After=bitcoind.service
|
|
|
|
|
|
|
|
[Service]
|
2019-08-19 02:26:35 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
WorkingDirectory=/opt/mynode/btc-rpc-explorer
|
|
|
|
ExecStart=/usr/bin/npm start
|
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
|
|
|
LimitNOFILE=128000
|
2019-10-05 01:30:56 +00:00
|
|
|
TimeoutSec=120
|
2019-06-15 23:02:44 +00:00
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=btc_rpc_explorer
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|