1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/net/openntpd/files/openntpd.sh
Christian Weisgerber f8e7096728 Initial import of openntpd (OpenBSD's ntpd, portable version).
The ntpd daemon implements the Simple Network Time Protocol version 4 as
described in RFC 2030 and the Network Time Protocol version 3 as de-
scribed in RFC 1305.  It can synchronize the local clock to one or more
remote NTP servers and act as NTP server itself, redistributing the local
time.
2004-07-11 17:18:24 +00:00

24 lines
324 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: openntpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD nojail
. %%RC_SUBR%%
name=openntpd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/ntpd
required_files=%%PREFIX%%/etc/ntpd.conf
# set default
openntpd_enable=${openntpd_enable:-"NO"}
load_rc_config $name
run_rc_command "$1"