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

#$LastChangedBy: igor $
#$Date: 2004-10-13 13:17:36 -0600 (Wed, 13 Oct 2004) $

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
	start)
		echo "Starting ntpd..."
		ntpd -gqx
		loadproc /usr/sbin/ntpd
		;;

	stop)
		echo "Stopping ntpd..."
		killproc /usr/sbin/ntpd
		;;

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

	status)
		statusproc /usr/sbin/ntpd
		;;

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

# End $rc_base/init.d/ntp
