mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-15 18:02:49 +00:00
27 lines
563 B
Desktop File
27 lines
563 B
Desktop File
# BTC RPC Explorer service
|
|
# /etc/systemd/system/btcrpcexplorer.service
|
|
|
|
[Unit]
|
|
Description=BTC RPC Explorer
|
|
Wants=bitcoin.service
|
|
After=bitcoin.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=btcrpcexplorer
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target |