#!/sbin/svc
# 
#  Copyright: ©2013, Güralp Systems Ltd.
#  Author: Laurence Withers <lwithers@guralp.com>
#  License: GPLv3
#
# NTP shared memory driver for GSL equipment. This daemon is responsible for
# arbitrating between Güralp receiver code (gcf-in-brp, cd24-lowlatency-in)
# and NTP's shared memory driver. It is mutually exclusive with gpsd. The
# "timing" service script is responsible for starting this script and any
# associated dependencies.
#

MYLISTING="Network time protocol driver for Guralp equipment."
CONTROL_GROUP="conf"
MYVERSION="1.0"
MYCFG="/etc/ntpshmgsl.conf"



start() {
	daemonize /usr/bin/ntpshmgsl --config "${MYCFG}" \
		--user "daemon" --group "daemon"
}

stop() {
        kill_pid
}
