#!/bin/sh
#
# $FreeBSD: ports/net/openntpd/files/openntpd.in,v 1.6 2012/11/17 06:00:09 svnexp Exp $
#
# PROVIDE: openntpd
# REQUIRE: DAEMON ntpdate
# BEFORE:  LOGIN
# KEYWORD: nojail shutdown
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# openntpd_enable (bool):	Set to NO by default.
#				Set it to YES to enable openntpd.

. /etc/rc.subr

name=openntpd
rcvar=openntpd_enable

command=/usr/local/sbin/ntpd
required_files=/usr/local/etc/ntpd.conf

load_rc_config $name

: ${openntpd_enable="NO"}

run_rc_command "$1"
