#!/bin/sh # # $FreeBSD: head/net/dhcpd/files/dhcpd.in 403095 2015-12-06 09:50:48Z pi $ # # PROVIDE: dhcpd # REQUIRE: DAEMON # BEFORE: LOGIN # KEYWORD: shutdown # Add the following lines to /etc/rc.conf to enable dhcpd: # dhcpd_enable="YES" # dhcpd_flags="" . /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"