Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/etc/rc.d Pull up revision 1.13 (requested by lukem in t...



details:   https://anonhg.NetBSD.org/src/rev/3919a79350a8
branches:  netbsd-1-6
changeset: 527993:3919a79350a8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 18 23:49:44 2002 +0000

description:
Pull up revision 1.13 (requested by lukem in ticket #316):
Build the list of names to check for $XXX_chrootdir support from
`rcorder -k chrootdir` rather than hardcoding "named ntpd".
Based on [misc/16884] from Jarle Greipsland <jarle%uninett.no@localhost>

diffstat:

 etc/rc.d/syslogd |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 46605e5ec241 -r 3919a79350a8 etc/rc.d/syslogd
--- a/etc/rc.d/syslogd  Tue Jun 18 23:49:36 2002 +0000
+++ b/etc/rc.d/syslogd  Tue Jun 18 23:49:44 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: syslogd,v 1.12 2002/03/22 04:34:00 thorpej Exp $
+# $NetBSD: syslogd,v 1.12.2.1 2002/06/18 23:49:44 lukem Exp $
 #
 
 # PROVIDE: syslogd
@@ -31,10 +31,12 @@
        #
        ( umask 022 ; > $_sockfile )
 
-       #       If running named(8) or ntpd(8) chrooted, added appropriate
+       #       Find /etc/rc.d scripts with "chrootdir" rcorder(8) keyword,
+       #       and if $${app}_chrootdir is a directory, add appropriate
        #       syslog socket to list of sockets to watch.
        #
-       for _l in named ntpd; do
+       for _lr in $(rcorder -k chrootdir /etc/rc.d/*); do
+               _l=${_lr##*/}
                eval _ldir=\$${_l}_chrootdir
                if checkyesno $_l && [ -n "$_ldir" ]; then
                        echo "${_ldir}/var/run/log" >> $_sockfile



Home | Main Index | Thread Index | Old Index