diff --git a/bin/create_pod_langflow.sh b/bin/create_pod_langflow.sh index eaa9591..2fee02e 100755 --- a/bin/create_pod_langflow.sh +++ b/bin/create_pod_langflow.sh @@ -94,9 +94,9 @@ LANGFUSE_COMMON_ENV=( ) # Stop existing systemd-managed pod if present, to avoid conflicts on rerun -echo "Ending systemd-managed pod 'pod-$POD_NAME.service if it exists" -if systemctl --user list-units --type=service --all 2>/dev/null | grep -q 'pod-$POD_NAME.service'; then - systemctl --user stop pod-langflow_pod.service || true +echo "Stopping systemd-managed pod 'pod-$POD_NAME.service' if it exists..." +if systemctl --user list-units --type=service --all 2>/dev/null | grep -q "pod-$POD_NAME.service"; then + systemctl --user stop "pod-$POD_NAME.service" || true fi # Prepare directories