Require NETWORKING, not DAEMON for ntpd. The former makes much more sense
[dragonfly.git] / etc / rc.d / ntpd
1 #!/bin/sh
2 #
3 # $NetBSD: ntpd,v 1.6 2002/03/22 04:33:59 thorpej Exp $
4 # $FreeBSD: src/etc/rc.d/ntpd,v 1.5 2002/10/12 10:31:31 schweikh Exp $
5 # $DragonFly: src/etc/rc.d/Attic/ntpd,v 1.4 2005/02/20 21:52:33 joerg Exp $
6 #
7
8 # PROVIDE: ntpd
9 # REQUIRE: NETWORKING
10 # BEFORE:  LOGIN
11 # KEYWORD: DragonFly
12
13 . /etc/rc.subr
14
15 name=ntpd
16 rcvar=`set_rcvar`
17 command="/usr/sbin/${name}"
18 required_files="/etc/ntpd.conf"
19 load_rc_config $name
20 run_rc_command "$1"