summaryrefslogtreecommitdiff
path: root/net/dhcpd/files/dhcpd.in
blob: 16ec59f87ba4ef2dd3bb4d7eaeef8aa750f1620e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: dhcpd
# REQUIRE: DAEMON
# BEFORE:  LOGIN
# KEYWORD: shutdown

# Add the following lines to /etc/rc.conf to enable dhcpd:
# dhcpd_enable="YES"
# dhcpd_flags="<set as needed>"

. /etc/rc.subr

name=dhcpd
rcvar=dhcpd_enable

command="%%PREFIX%%/sbin/dhcpd"

dhcpd_enable=${dhcpd_enable:-"NO"}
dhcpd_flags=${dhcpd_flags:-"-c %%PREFIX%%/etc/dhcpd.conf"}

load_rc_config $name
run_rc_command "$1"