#!/bin/sh
#
# identd control script
#
# You probably want to modify this!
#

PIDFILE=/var/run/identd.pid
IDENTD=/usr/sbin/identd


if [ -f $PIDFILE ]; then
	pid=`cat $PIDFILE`
fi

case $1 in
'start')
	if [ -x $IDENTD ]; then
		echo "Starting Identd"
		$IDENTD
	fi
	;;

'stop')
	if [ "${pid}" != "" ]; then
		/usr/bin/kill ${pid}
	fi
	;;

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

