#!/usr/bin/env /lib/runit/invoke-run
set -e

NAME="ntpsec"
DAEMON=/usr/sbin/ntpd
PIDFILE=/run/ntpd.pid
DAEMON_OPTS=''

# Exit service if DAEMON is not installed
if [ ! -x $DAEMON ]; then
	exit 161
fi

# Load defaults
[ -f /etc/default/ntpsec ] && . /etc/default/ntpsec

exec 2>&1

exec $DAEMON -g -n ${DAEMON_OPTS}

