2019-06-15 23:02:44 +00:00
|
|
|
# RTL service
|
|
|
|
# /etc/systemd/system/rtl.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=RTL
|
2021-04-11 00:51:26 +00:00
|
|
|
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
|
2019-06-15 23:02:44 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2021-12-18 05:18:25 +00:00
|
|
|
ExecStartPre=+/usr/bin/mynode_pre_rtl.sh
|
2019-06-15 23:02:44 +00:00
|
|
|
WorkingDirectory=/opt/mynode/RTL
|
|
|
|
ExecStart=/usr/bin/node rtl
|
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
|
|
|
TimeoutSec=240
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=rtl
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|