Check phdaemon script

charlie crassi charlie at ureka.UUCP
Mon Apr 17 03:35:44 AEST 1989


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



More information about the Unix-pc.sources mailing list