#! /sbin/sh
#Tag 0x00000f00

# UUCP control
# "$Revision: 1.15 $"

# demons which may be present when taking the system down
DEMONS="UUCICO uucico uusched uux"

case $1 in
'start')
#	Clean-up uucp locks, status, and temporary files
	set `/sbin/who -r`
	if [ $9 = "S" ]
	then
		/bin/rm -rf /var/spool/locks/*
	fi
	;;

'stop')
	/sbin/killall 15 $DEMONS
	sleep 1
	/sbin/killall $DEMONS
	;;

*)
	echo "usage: /etc/init.d/uucp {start|stop}"
	;;
esac
