mynode/rootfs/standard/etc/systemd/system/btcpayserver.service

17 lines
712 B
SYSTEMD
Raw Normal View History

2020-01-15 04:47:44 +00:00
# myNode btcpayserver service
# /etc/systemd/system/btcpayserver.service
[Unit]
Description=BTCPayServer service
2020-01-21 00:37:47 +00:00
After=docker.service network-online.target bitcoind.service
Requires=docker.service network-online.target bitcoind.service
2020-01-15 04:47:44 +00:00
[Service]
Type=oneshot
RemainAfterExit=yes
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