#!/bin/sh
case "$1" in
    start)
	echo "Starting Mail Notify Service. (maild)"
	/usr/bin/mailnotd
	echo
	;;
    restart)
        echo "Restarting Mail Notify Service: (maild)"
        kill -HUP `cat $HOME/.maild.PID`
        echo
        ;;
    stop)
	echo -n "Shutting down Mail Notify Service:"
	kill -TERM `cat $HOME/.maild.PID`
	echo
	;;
    *)
	echo "Usage: $0 {start|stop|restart}"
	exit 1
esac