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:
@@ -64,9 +64,10 @@ EOF
|
|||||||
chown root:root "${ENV_FILE}"
|
chown root:root "${ENV_FILE}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[7/7] Reload and enable service ..."
|
echo "[7/7] Reload, enable and restart service ..."
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
systemctl enable --now "${SERVICE_NAME}.service"
|
systemctl enable "${SERVICE_NAME}.service"
|
||||||
|
systemctl restart "${SERVICE_NAME}.service"
|
||||||
|
|
||||||
echo "[status] Service status ..."
|
echo "[status] Service status ..."
|
||||||
systemctl --no-pager --full status "${SERVICE_NAME}.service" || true
|
systemctl --no-pager --full status "${SERVICE_NAME}.service" || true
|
||||||
|
|||||||
Reference in New Issue
Block a user