Browse Source

Don't start cfsd if mountd is not running, instead give an error message.

OPENBSD_2_3
dima 27 years ago
parent
commit
3460da97f1
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      src/etc/rc.local

+ 7
- 3
src/etc/rc.local View File

@ -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 # site-specific startup actions, daemons, and other things which
# can be done AFTER your system goes into securemode. For actions # can be done AFTER your system goes into securemode. For actions
@ -19,8 +19,12 @@ if [ -x /usr/local/sbin/sshd ]; then
fi fi
if [ -x /usr/local/sbin/cfsd ]; then 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 fi
if [ -x /usr/local/sbin/snmpd ]; then if [ -x /usr/local/sbin/snmpd ]; then


Loading…
Cancel
Save