mynode/rootfs/standard/etc/systemd/system/btc_rpc_explorer.service
2020-07-17 18:10:23 -05:00

27 lines
569 B
Desktop File

# BTC RPC Explorer service
# /etc/systemd/system/btc_rpc_explorer.service
[Unit]
Description=BTC RPC Explorer
Wants=bitcoind.service
After=bitcoind.service
[Service]
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
ExecStartPre=/usr/bin/wait_on_electrs.sh
WorkingDirectory=/opt/mynode/btc-rpc-explorer
ExecStart=/usr/bin/npm start
User=bitcoin
Group=bitcoin
Type=simple
TimeoutSec=120
Restart=always
RestartSec=60
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=btc_rpc_explorer
[Install]
WantedBy=multi-user.target