Browse Source

Fix no systemd reload

tor-relay
nicolas.dorier 5 years ago
parent
commit
21f1af6280
No known key found for this signature in database GPG Key ID: 6618763EF09186FE
  1. 6
      btcpay-setup.sh

6
btcpay-setup.sh

@ -465,6 +465,7 @@ WantedBy=multi-user.target" > /etc/systemd/system/btcpayserver.service
fi fi
echo -e "BTCPay Server systemd configured in /etc/systemd/system/btcpayserver.service\n" echo -e "BTCPay Server systemd configured in /etc/systemd/system/btcpayserver.service\n"
if $SYSTEMD_RELOAD; then
systemctl daemon-reload systemctl daemon-reload
systemctl enable btcpayserver systemctl enable btcpayserver
if $START; then if $START; then
@ -472,6 +473,9 @@ WantedBy=multi-user.target" > /etc/systemd/system/btcpayserver.service
systemctl start btcpayserver systemctl start btcpayserver
echo "BTCPay Server started" echo "BTCPay Server started"
fi fi
else
systemctl --no-reload enable btcpayserver
fi
elif $STARTUP_REGISTER && [[ -x "$(command -v initctl)" ]]; then elif $STARTUP_REGISTER && [[ -x "$(command -v initctl)" ]]; then
# Use upstart # Use upstart
echo "Using upstart" echo "Using upstart"
@ -495,7 +499,7 @@ script
end script" > /etc/init/start_containers.conf end script" > /etc/init/start_containers.conf
echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n" echo -e "BTCPay Server upstart configured in /etc/init/start_containers.conf\n"
if $START && $SYSTEMD_RELOAD; then if $START; then
initctl reload-configuration initctl reload-configuration
fi fi
fi fi

Loading…
Cancel
Save