Update After parameter in systemd service file

This commit is contained in:
runbtc 2024-05-10 14:57:16 -07:00
parent becf3c7246
commit 6a3f0a9289
No known key found for this signature in database
GPG Key ID: B365F26B1E726291
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
[Unit]
Description=Bisq Node
After=bitcoin.service
After=network.target
#Requires=bitcoin.service
#BindsTo=bitcoin.service

View File

@ -127,6 +127,7 @@ sudo -H -i -u "${ROOT_USER}" chown -R "${BISQ_USER}:${BISQ_GROUP}" "${BISQ_HOME}
echo "[*] Installing Bisq init script"
sudo -H -i -u "${ROOT_USER}" install -c -o "${ROOT_USER}" -g "${ROOT_GROUP}" -m 644 "${BISQ_HOME}/${BISQ_REPO_NAME}/seednode/bisq.service" "${SYSTEMD_SERVICE_HOME}/bisq.service"
if [ "${BITCOIN_INSTALL}" = true ];then
sudo sed -i -e "s/After=network.target/After=bitcoin.service/" "${SYSTEMD_SERVICE_HOME}/bisq.service"
sudo sed -i -e "s/#Requires=bitcoin.service/Requires=bitcoin.service/" "${SYSTEMD_SERVICE_HOME}/bisq.service"
sudo sed -i -e "s/#BindsTo=bitcoin.service/BindsTo=bitcoin.service/" "${SYSTEMD_SERVICE_HOME}/bisq.service"
fi