#!/bin/bash echo "Starting webserver..." until pgrep "$SERVER"; do cd "$SERVER_DIR" && ./$SERVER & sleep 2 done