Remove building with NOCRYPTO option
[minix.git] / etc / rc.d / dhcpd
blobe1472f043e8b2c1a821c47ae621f07d09f951627
1 #!/bin/sh
3 # $NetBSD: dhcpd,v 1.7 2014/07/17 07:17:03 spz Exp $
6 # PROVIDE: dhcpd
7 # REQUIRE: DAEMON
8 # BEFORE: LOGIN
10 $_rc_subr_loaded . /etc/rc.subr
12 name="dhcpd"
13 rcvar=$name
14 command="/usr/sbin/${name}"
15 start_precmd="dhcpd_precmd"
16 pidfile="/var/run/${name}.pid"
17 required_files="/etc/${name}.conf"
19 dhcpd_precmd()
21 if [ ! -e "/var/db/${name}.leases" ]; then
22 echo "Creating /var/db/${name}.leases"
23 touch /var/db/${name}.leases
27 load_rc_config $name
28 run_rc_command "$1"