#!/bin/sh
# Begin $rc_base/init.d/sendmail

# Based on sysklogd script from LFS-3.1 and earlier.
# Rewritten by Gerard Beekmans  - gerard@linuxfromscratch.org

#$LastChangedBy: dj $
#$Date: 2004-10-02 11:57:32 -0600 (Sat, 02 Oct 2004) $

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
	start)
		echo "Starting sendmail..."
		loadproc /usr/sbin/sendmail -bs -bd -q5m start
		;;

	stop)
		echo "Stopping Sendmail..."
		killproc /usr/sbin/sendmail
		;;

	status)
		statusproc /usr/sbin/sendmail
		;;

	restart)
		$0 stop
		sleep 1
		$0 start
		;;

	*)
		echo "Usage: $0 {start|stop|status|restart}"
		exit 1
		;;
esac

# End $rc_base/init.d/sendmail
