[BACK]Return to dhcpd CVS log [TXT][DIR] Up to [local] / src / etc / rc.d

File: [local] / src / etc / rc.d / dhcpd (download)

Revision 1.4, Mon Oct 10 12:07:53 2022 UTC (19 months, 3 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.3: +6 -1 lines

Enable configtest

OK solene

#!/bin/ksh
#
# $OpenBSD: dhcpd,v 1.4 2022/10/10 12:07:53 kn Exp $

daemon="/usr/sbin/dhcpd"

. /etc/rc.d/rc.subr

rc_configtest() {
	# use rc_exec here since daemon_flags may contain arguments with spaces
	rc_exec "${daemon} -n ${daemon_flags}"
}

rc_reload=NO

rc_pre() {
	touch /var/db/dhcpd.leases
}

rc_cmd $1