pkgsrc/net/dnsmasq/files/dnsmasq.sh
abs 772d95d651 Add a 'reload' rc.d option (automatically uses the pid file), which will
make dnsmasq reload the dhcp file. Add patch comment and mps
Bump PKGREVISION
2015-04-22 14:57:22 +00:00

18 lines
303 B
Bash

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: dnsmasq.sh,v 1.3 2015/04/22 14:57:22 abs Exp $
#
# PROVIDE: dnsmasq
# REQUIRE: DAEMON SERVERS
. /etc/rc.subr
name="dnsmasq"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="/var/run/${name}.pid"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"