#!/sbin/svc
# 
#  Copyright: ©2014, Güralp Systems Ltd.
#  Author: Laurence Withers <lwithers@guralp.com>
#  License: GPLv3
#
# GPS status monitor; acts as a bridge between gpsd and XML status. It also
# implements NTP panic gate (> 4 hours difference) behaviour. The "timing"
# service script is responsible for starting this script and any associated
# dependencies.
#

MYLISTING="GPS status monitor daemon"
CONTROL_GROUP="conf"
MYVERSION="1.0"
MYCFG="/etc/gpsstatusd.conf"



start() {
	# needs to run as root for various SHM setup etc
	daemonize /usr/bin/gps-statusd --config "${MYCFG}" \
		--user "daemon" --group "daemon"
}

stop() {
        kill_pid
}
