Update service management in install-systemd.sh to include service restart

Modified the service management commands to ensure the service is restarted after enabling it. This change enhances the deployment process by ensuring the latest configuration is applied immediately. Updated the echo statement for clarity on the actions being performed.
This commit is contained in:
Torsten Schulz (local)
2026-03-27 13:51:04 +01:00
parent 2bf7823f21
commit b2752b3fae

View File

@@ -64,9 +64,10 @@ EOF
chown root:root "${ENV_FILE}"
fi
echo "[7/7] Reload and enable service ..."
echo "[7/7] Reload, enable and restart service ..."
systemctl daemon-reload
systemctl enable --now "${SERVICE_NAME}.service"
systemctl enable "${SERVICE_NAME}.service"
systemctl restart "${SERVICE_NAME}.service"
echo "[status] Service status ..."
systemctl --no-pager --full status "${SERVICE_NAME}.service" || true