[unix-pc.sources] Check phdaemon script

charlie@ureka.UUCP (charlie crassi) (04/17/89)

I am still having trouble with phdaemon crashing with the notice
about not being able to swap process 77, so I wrote this script to
keep track of /etc/daemons/phdaemon. You may find it useful. I do 
not give any guarantees, it works fine on ureka. 
--
charlie

---- cut here ----- cut here ----- cut here ----- cut here -----
# install this script in /usr/local/bin and run it from   
# crontab as root 

# examine status of phdaemon

ps -e >> /tmp/pdemon
cd /tmp

# if daemon has not crashed remove pdemon file 

if grep phdaemon pdemon
then rm -f pdemon
	exit

# if daemon has crashed delete file and restart daemon

else rm -f pdemon

/etc/daemons/phdaemon
	exit
fi