mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 23:14:04 +00:00
Start BTCPayServer after Bitcoin
This commit is contained in:
parent
34b26f0829
commit
2b58fca425
|
@ -3,13 +3,13 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=BTCPayServer service
|
Description=BTCPayServer service
|
||||||
After=docker.service network-online.target
|
After=docker.service network-online.target bitcoind.service
|
||||||
Requires=docker.service network-online.target
|
Requires=docker.service network-online.target bitcoind.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
ExecStartPre=/usr/bin/wait_on_bitcoin.sh
|
||||||
ExecStart=/bin/bash -c '. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_up'
|
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'
|
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'
|
ExecReload=/bin/bash -c '. "/opt/mynode/btcpayserver/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY" && . helpers.sh && btcpay_restart'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user