summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-12-28 01:24:04 +0000
committerjkh <jkh@FreeBSD.org>1995-12-28 01:24:04 +0000
commit27bb84eb6544b58ec173652aa70ddc06180d30c0 (patch)
tree9dbfadd1ea3b346437a48c3b430d62c0b19d2802 /etc/rc
parentbcd430b53f3c2db01dff30480ad3d3d04963de99 (diff)
downloadFreeBSD-src-27bb84eb6544b58ec173652aa70ddc06180d30c0.zip
FreeBSD-src-27bb84eb6544b58ec173652aa70ddc06180d30c0.tar.gz
Go to new scheme for local_startup variable. Now one can specify multiple
directories to check in looking for port startup scripts. The specific gunge for apache httpd, gated and pcnfsd in /etc/sysconfig and /etc/netstart is gone now. Note that pcnfsd's troubles aren't necessarily over (and probably why NetBSD brought it into their sources) - anyone adding pcnfsd will STILL have to tweak /etc/sysconfig in order to set the new variable `weak_mountd_authentication' to YES. The flags to mountd are directly affected by pcnfsd's requirements for non-root mounts, unfortunately! :-( Submitted by: paul & jkh
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc13
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/rc b/etc/rc
index 319dd7f..234960d 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.78 1995/11/04 05:03:16 pst Exp $
+# $Id: rc,v 1.79 1995/12/09 19:40:12 ache Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -210,7 +210,7 @@ fi
if [ "X${nfs_server}" = X"YES" -a -r /etc/exports ]; then
echo -n ' mountd'
- if [ "X${pcnfsd}" = X"YES" ]; then
+ if [ "X${weak_mountd_authentication}" = X"YES" ]; then
mountd -n
else
mountd
@@ -295,9 +295,12 @@ if [ -f /etc/rc.${arch} ]; then
. /etc/rc.${arch}
fi
-if [ "X${local_startup}" != X"NO" -a -d ${local_startup} ]; then
- for script in ${local_startup}/*.sh; do
- [ -x ${script} ] && ${script} start
+# for each valid dir in $local_startup, search for init scripts matching *.sh
+if [ "X${local_startup}" != X"NO" ]; then
+ for dir in ${local_startup}; do
+ [ -d ${dir} ] && for script in ${dir}/*.sh; do
+ [ -x ${script} ] && ${script} start
+ done
done
fi
OpenPOWER on IntegriCloud