diff --git a/backend/app/api/v1/router.py b/backend/app/api/v1/router.py index 1d4c8d2..538ddc7 100644 --- a/backend/app/api/v1/router.py +++ b/backend/app/api/v1/router.py @@ -730,7 +730,8 @@ EOF if command -v systemctl >/dev/null 2>&1; then systemctl daemon-reload - systemctl enable --now "$SERVICE_NAME.service" + systemctl enable "$SERVICE_NAME.service" + systemctl restart "$SERVICE_NAME.service" systemctl status "$SERVICE_NAME.service" --no-pager || true else echo "systemctl not found. Run manually: python3 $INSTALL_DIR/nexafabric-agent.py --config $CONFIG_DIR/config.json"