Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/nsd/etc/rc.d make a link to the pid file so the...
details: https://anonhg.NetBSD.org/src/rev/57c6b71492b5
branches: trunk
changeset: 433315:57c6b71492b5
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 07 16:51:12 2018 +0000
description:
make a link to the pid file so the rc scripts can find it.
diffstat:
external/bsd/nsd/etc/rc.d/nsd | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 5c571ffc8997 -r 57c6b71492b5 external/bsd/nsd/etc/rc.d/nsd
--- a/external/bsd/nsd/etc/rc.d/nsd Fri Sep 07 16:50:22 2018 +0000
+++ b/external/bsd/nsd/etc/rc.d/nsd Fri Sep 07 16:51:12 2018 +0000
@@ -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_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
Home |
Main Index |
Thread Index |
Old Index