Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/ntpd
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: ntpd | # PROVIDE: ntpd | ||||
# REQUIRE: DAEMON ntpdate FILESYSTEMS devfs | # REQUIRE: DAEMON ntpdate FILESYSTEMS devfs | ||||
# BEFORE: LOGIN | # BEFORE: LOGIN | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="ntpd" | name="ntpd" | ||||
desc="Network Time Protocol daemon" | |||||
rcvar="ntpd_enable" | rcvar="ntpd_enable" | ||||
command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
pidfile="/var/run/${name}.pid" | pidfile="/var/run/${name}.pid" | ||||
extra_commands="fetch" | extra_commands="fetch" | ||||
fetch_cmd="ntpd_fetch_leapfile" | fetch_cmd="ntpd_fetch_leapfile" | ||||
start_precmd="ntpd_precmd" | start_precmd="ntpd_precmd" | ||||
load_rc_config $name | load_rc_config $name | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |