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