From b2752b3fae9366eff5737441e77b3a025de7f436 Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 27 Mar 2026 13:51:04 +0100 Subject: [PATCH] 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. --- install-systemd.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-systemd.sh b/install-systemd.sh index 32e3cda..3966e05 100755 --- a/install-systemd.sh +++ b/install-systemd.sh @@ -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