2019-06-15 23:02:44 +00:00
|
|
|
# myNode electrs service
|
|
|
|
# /etc/systemd/system/electrs.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=myNode Electrum Server
|
|
|
|
Wants=bitcoind.service quicksync.service
|
|
|
|
After=bitcoind.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
KillMode=process
|
2019-07-06 01:45:42 +00:00
|
|
|
EnvironmentFile=/mnt/hdd/mynode/settings/.btcrpc_environment
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
2021-03-09 03:55:39 +00:00
|
|
|
ExecStart=/usr/bin/electrs --conf=/mnt/hdd/mynode/electrs/electrs.toml -vvvv
|
2019-06-15 23:02:44 +00:00
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
TimeoutSec=300
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
2019-08-13 03:38:47 +00:00
|
|
|
Nice=5
|
2019-06-15 23:02:44 +00:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=electrs
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|