2021-04-11 00:51:26 +00:00
|
|
|
# pool service
|
|
|
|
# /etc/systemd/system/pool.service
|
2020-11-17 00:55:30 +00:00
|
|
|
|
|
|
|
[Unit]
|
2021-04-11 00:51:26 +00:00
|
|
|
Description=pool
|
2020-11-17 00:55:30 +00:00
|
|
|
Wants=lnd.service
|
|
|
|
After=lnd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2021-03-09 03:55:39 +00:00
|
|
|
EnvironmentFile=/mnt/hdd/mynode/pool/env
|
2021-04-14 05:19:04 +00:00
|
|
|
ExecStart=/usr/local/bin/poold --network=${NETWORK} --basedir=/mnt/hdd/mynode/pool
|
2020-11-17 00:55:30 +00:00
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
|
|
|
KillMode=control-group
|
|
|
|
TimeoutSec=240
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2021-04-11 00:51:26 +00:00
|
|
|
SyslogIdentifier=pool
|
2020-11-17 00:55:30 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|