Module Name: src
Committed By: christos
Date: Fri Sep 7 16:51:13 UTC 2018
Modified Files:
src/external/bsd/nsd/etc/rc.d: nsd
Log Message:
make a link to the pid file so the rc scripts can find it.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/nsd/etc/rc.d/nsd
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/nsd/etc/rc.d/nsd
diff -u src/external/bsd/nsd/etc/rc.d/nsd:1.1 src/external/bsd/nsd/etc/rc.d/nsd:1.2
--- src/external/bsd/nsd/etc/rc.d/nsd:1.1 Sat Jan 7 14:51:21 2017
+++ src/external/bsd/nsd/etc/rc.d/nsd Fri Sep 7 12:51:12 2018
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: nsd,v 1.1 2017/01/07 19:51:21 christos Exp $
+# $NetBSD: nsd,v 1.2 2018/09/07 16:51:12 christos Exp $
#
# PROVIDE: named
@@ -62,13 +62,14 @@ nsd_migrate()
nsd_precmd()
{
- if [ -z "$nsd_chrootdir" ]; then
+ if [ -z "${nsd_chrootdir}" ]; then
return
fi
if [ ! -h /etc/nsd ]; then
nsd_migrate /etc/nsd ${nsd_chrootdir}
fi
+ ln -sf "${nsd_chrootdir}${pidfile}" "${pidfile}"
}
load_rc_config $name