2020-02-09 02:20:35 +00:00
|
|
|
# loopd service
|
|
|
|
# /etc/systemd/system/loopd.service
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Unit]
|
2020-02-09 02:20:35 +00:00
|
|
|
Description=loopd
|
|
|
|
Wants=lnd.service
|
|
|
|
After=lnd.service
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Service]
|
2020-07-17 23:10:23 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2021-03-09 03:55:39 +00:00
|
|
|
EnvironmentFile=/mnt/hdd/mynode/loop/env
|
|
|
|
ExecStart=/usr/local/bin/loopd --network=${NETWORK} --loopdir=/mnt/hdd/mynode/loop --lnd.macaroonpath=${LND_ADMIN_MACAROON_PATH}
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
2020-07-17 23:10:23 +00:00
|
|
|
KillMode=control-group
|
2019-06-15 23:02:44 +00:00
|
|
|
TimeoutSec=240
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2020-02-09 02:20:35 +00:00
|
|
|
SyslogIdentifier=loopd
|
2019-06-15 23:02:44 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|