#!/bin/sh
. /etc/utils/shell-utils.sh

test -f /usr/sbin/ntpd || exit 0

case "$1" in
        start)
		append_ntp_config "configured by ntp-server-manual"
                /etc/init.d/ntp-server start
                ;;
        stop)
                /etc/init.d/ntp-server stop
                ;;
        restart|force-reload)
                /etc/init.d/ntp-server-manual stop
                /etc/init.d/ntp-server-manual start
                ;;
        *)
                echo "Usage: /etc/init.d/ntp-server-manual {start|stop|restart|force-reload}"
                exit 1
                ;;
esac

exit 0
