#!/sbin/svc
# 
#  Copyright: ©2013, Güralp Systems Ltd.
#  Author: Laurence Withers <lwithers@guralp.com>
#  License: GPLv3
#
# NTP daemon. May be used in various ways; getting time from the network,
# getting time from GPS or getting time from CD24/DM24 via ntpshmgsl driver.
# The "timing" service script is responsible for starting this script and any
# associated dependencies.
#

MYLISTING="Network time protocol daemon. Manages system real-time clock."
CONTROL_GROUP="conf"
MYCFG="/etc/ntp.conf.local"
MYVERSION="2.0"


start() {
        daemonize_orig /usr/sbin/ntpd \
                --configfile "${MYCFG}" \
                --nofork --panicgate
}

stop() {
        kill_pid
}
