new restartonexit.sh script