EXISTING_SSH_PID=$(pgrep -f "ssh -R 80:localhost:4533 serveo.net") echo $EXISTING_SSH_PID if ! [ -n "$EXISTING_SSH_PID" ]; then # Start reverse proxy in the background nohup caddy reverse-proxy --from :2637 --to :4533 fi