openbsd-ports/security/cfs/pkg/MESSAGE
sturm 85ac1ae19b clean up MESSAGE/UNMESSAGE and mention startup code here, it's going
to be removed from rc.local

synchronously mount /crypt as suggested in pr 3567, this way I can move
even files bigger than a few KB into the crypted directory.
2006-07-28 20:15:39 +00:00

21 lines
543 B
Plaintext

To start CFS automatically at boot time, add these lines to /etc/rc.local:
if [ -x ${PREFIX}/sbin/cfsd ]; then
if pgrep mountd > /dev/null; then
echo -n ' cfsd'; ${PREFIX}/sbin/cfsd >/dev/null 2>&1
mount -o port=3049,nfsv2,intr,sync localhost:/null /crypt
else
echo -n ' cfsd (failed, no mountd running)'
fi
fi
Then do these steps as root:
0) add this line to /etc/exports
/null localhost
1) set "nfs_server=YES" and "portmap=YES" in /etc/rc.conf.local
2) reboot or start all necessary daemons by hand and mount /crypt