From 3460da97f151c0923b942e9201edd9559e8063bc Mon Sep 17 00:00:00 2001 From: dima <> Date: Mon, 2 Feb 1998 00:29:14 +0000 Subject: [PATCH] Don't start cfsd if mountd is not running, instead give an error message. --- src/etc/rc.local | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/etc/rc.local b/src/etc/rc.local index 8d93735e..ed3c3afa 100644 --- a/src/etc/rc.local +++ b/src/etc/rc.local @@ -1,4 +1,4 @@ -# $OpenBSD: rc.local,v 1.18 1998/02/01 22:30:33 dima Exp $ +# $OpenBSD: rc.local,v 1.19 1998/02/02 00:29:14 dima Exp $ # site-specific startup actions, daemons, and other things which # can be done AFTER your system goes into securemode. For actions @@ -19,8 +19,12 @@ if [ -x /usr/local/sbin/sshd ]; then fi if [ -x /usr/local/sbin/cfsd ]; then - echo -n ' cfsd'; /usr/local/sbin/cfsd - mount -o port=3049,nfsv2,intr localhost:/null /crypt + if ps auxc | grep -q '^ *root .* mountd$'; then + echo -n ' cfsd'; /usr/local/sbin/cfsd + mount -o port=3049,nfsv2,intr localhost:/null /crypt + else + echo -n ' cfsd (failed, no mountd running)' + fi fi if [ -x /usr/local/sbin/snmpd ]; then