mynode/rootfs/standard/etc/systemd/system/btcrpcexplorer.service

28 lines
615 B
SYSTEMD
Raw Normal View History

2019-06-15 23:02:44 +00:00
# BTC RPC Explorer service
# /etc/systemd/system/btcrpcexplorer.service
2019-06-15 23:02:44 +00:00
[Unit]
Description=BTC RPC Explorer
Wants=bitcoin.service
After=bitcoin.service
2019-06-15 23:02:44 +00:00
[Service]
2020-04-23 02:59:37 +00:00
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
2019-12-11 02:31:32 +00:00
ExecStartPre=/usr/bin/wait_on_electrs.sh
ExecStartPre=+/usr/bin/mynode_pre_btcrpcexplorer.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
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=btcrpcexplorer
2019-06-15 23:02:44 +00:00
[Install]
WantedBy=multi-user.target