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

23 lines
902 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
2022-04-14 02:36:04 +00:00
After=docker.service network-online.target bitcoin.service
Requires=docker.service network-online.target bitcoin.service
2020-01-15 04:47:44 +00:00
[Service]
Type=oneshot
RemainAfterExit=yes
2022-04-14 02:36:04 +00:00
# myNode Customizations
2020-04-23 02:59:37 +00:00
ExecStartPre=/usr/bin/is_not_shutting_down.sh
ExecStartPre=/usr/bin/is_mainnet.sh
2022-04-14 02:36:04 +00:00
ExecStartPre=/usr/bin/wait_on_docker_image_install.sh
ExecStart=/bin/bash -c '. "/etc/profile.d/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" && . helpers.sh && btcpay_up'
ExecStop=/bin/bash -c '. "/etc/profile.d/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" && . helpers.sh && btcpay_down'
ExecReload=/bin/bash -c '. "/etc/profile.d/btcpay-env.sh" && cd "$BTCPAY_BASE_DIRECTORY/btcpayserver-docker" && . helpers.sh && btcpay_restart'
2020-01-15 04:47:44 +00:00
[Install]
WantedBy=multi-user.target