2020-01-15 04:47:44 +00:00
|
|
|
# myNode btcpayserver service
|
|
|
|
# /etc/systemd/system/btcpayserver.service
|
|
|
|
|
|
|
|
[Unit]
|
|
|
|
Description=BTCPayServer service
|
2021-11-19 20:34:28 +00:00
|
|
|
After=docker.service network-online.target bitcoin.service lnd.service
|
|
|
|
Requires=docker.service network-online.target bitcoin.service lnd.service
|
2020-01-15 04:47:44 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|
2020-04-23 02:59:37 +00:00
|
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
2021-03-14 06:20:56 +00:00
|
|
|
ExecStartPre=/usr/bin/is_mainnet.sh
|
2021-11-19 20:34:28 +00:00
|
|
|
ExecStartPre=/usr/bin/wait_on_lnd.sh
|
2020-01-15 04:47:44 +00:00
|
|
|
ExecStart=/bin/bash -c '. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_up'
|
|
|
|
ExecStop=/bin/bash -c '. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_down'
|
|
|
|
ExecReload=/bin/bash -c '. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_restart'
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|