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

18 lines
758 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
2020-04-23 02:59:37 +00:00
ExecStartPre=/usr/bin/is_not_shutting_down.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