#!/bin/sh
#
#############################################################################
# This script is designed to be used with a crontab to check if the autorun
# script is running every 10 minutes, if not, then start it back up.
# Edit your crontab, type crontab -e, it's a vi editor in most cases, and
# put one of the next two lines in the crontab (The first is run each minute).
#
# * * * * * /home/scmud/rogue/src/.cronmud
# 1,11,21,31,41,51 * * * * /home/runsv1.sh
#
# You will need to change the path to the startup script. If you do not know
# what your path is just 'cd ..' back till you get to your home and follow
# it up through the directories to the startup script.
#############################################################################
  
#direct to the directory where your startup file is.
cd ~/sv3/area
# find out if the file is running. If not, run it.
ps -ef | grep -v grep | grep subvis || nohup ./startup 5680

fi