#!/bin/sh
#
# timed -- start or stop the TIMED time synchronisation service
#

case "$1" in
start)
    need network

    if [ -x /usr/sbin/timed ]; then
	echo "starting timed"
	/usr/sbin/timed
    fi
    ;;
info)
    echo "Time synchronization (TIMED)"
    ;;
stop)
    if killall -0 timed; then
	echo "stopping timed"
	killall timed
    fi
    ;;
*)
    echo "usage: $0 {start|stop}"
    ;;
esac
