mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-11-16 02:12:49 +00:00
18 lines
758 B
Desktop File
18 lines
758 B
Desktop File
# myNode btcpayserver service
|
|
# /etc/systemd/system/btcpayserver.service
|
|
|
|
[Unit]
|
|
Description=BTCPayServer service
|
|
After=docker.service network-online.target bitcoind.service
|
|
Requires=docker.service network-online.target bitcoind.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStartPre=/usr/bin/is_not_shutting_down.sh
|
|
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 |