2020-07-08 03:13:01 +00:00
|
|
|
# LNBits service
|
|
|
|
# /etc/systemd/system/lnbits.service
|
2020-06-26 04:30:17 +00:00
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=LNBits
|
|
|
|
Wants=bitcoind.service lnd.service
|
|
|
|
After=bitcoind.service lnd.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2020-07-08 03:13:01 +00:00
|
|
|
ExecStartPre=/usr/bin/mynode_pre_lnbits.sh
|
2020-06-29 03:35:21 +00:00
|
|
|
ExecStartPre=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask migrate'
|
2020-06-26 04:30:17 +00:00
|
|
|
Environment=FLASK_ENV=development
|
|
|
|
WorkingDirectory=/opt/mynode/lnbits
|
|
|
|
|
2020-06-28 02:12:54 +00:00
|
|
|
ExecStart=/bin/sh -c 'cd /opt/mynode/lnbits && /usr/local/bin/pipenv run flask run --host 0.0.0.0'
|
2020-06-26 04:30:17 +00:00
|
|
|
|
|
|
|
User=bitcoin
|
|
|
|
Group=bitcoin
|
|
|
|
Type=simple
|
|
|
|
TimeoutSec=240
|
|
|
|
Restart=always
|
|
|
|
RestartSec=60
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
|
|
|
SyslogIdentifier=lnbits
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|