#! /bin/sh

. /etc/init.d/functions.sh

case "$1" in
	start)
		begin "Starting respawn daemon"
		start-stop-daemon --start --exec /sbin/respawnd
		end $?
		;;
	stop)
		begin "Stopping respawn daemon"
		start-stop-daemon --stop --retry 5 --exec /sbin/respawnd
		end $?
		;;
	*)
		error "Usage: $0 start|stop"
		;;
esac

exit 0
