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

#$LastChangedBy: spinal $
#$Date: Sat, 20 Dec 2008 16:47:02 +0200 $

. /etc/sysconfig/rc
. $rc_functions

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

	stop)
		boot_mesg "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
