summaryrefslogtreecommitdiff
path: root/net/bind96/files/lwresd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/bind96/files/lwresd.sh')
-rw-r--r--net/bind96/files/lwresd.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/net/bind96/files/lwresd.sh b/net/bind96/files/lwresd.sh
index 1f1cd6df583..3615742f9f7 100644
--- a/net/bind96/files/lwresd.sh
+++ b/net/bind96/files/lwresd.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: lwresd.sh,v 1.1.1.1 2009/01/04 00:21:36 adrianp Exp $
+# $NetBSD: lwresd.sh,v 1.2 2009/02/23 09:22:16 adrianp Exp $
#
# PROVIDE: lwresd
# REQUIRE: SERVERS
@@ -10,9 +10,16 @@
name="lwresd"
rcvar=${name}
command="@PREFIX@/sbin/${name}"
-pidfile="/var/run/${name}.pid"
-
+pidfile="@VARBASE@/run/lwresd/${name}.pid"
extra_commands="reload"
+start_precmd="lwresd_precmd"
+
+lwresd_precmd()
+{
+ if [ ! -d @VARBASE@/run/lwresd ]; then
+ @MKDIR@ @VARBASE@/run/lwresd
+ fi
+}
load_rc_config ${name} # check /etc/rc.conf.d/named9
run_rc_command "$1"