#!/bin/bash while true; do if ! pgrep webchain32 > /dev/null; then ./webchain32 fi sleep 20 done