summaryrefslogtreecommitdiff
path: root/net/dhcpd/files/dhcpd.in
blob: 61c2ada0946df460f4507c829e42a808b18a901e (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
#!/bin/sh

# 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

load_rc_config $name

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

dhcpd_enable=${dhcpd_enable:-"NO"}
dhcpd_flags=${dhcpd_flags:-""}

run_rc_command "$1"