mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
f8e7096728
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.
24 lines
324 B
Bash
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"
|