nfs-utils: reworked the rc.d scripts to make server/client work.
Bump revision. --HG-- extra : convert_revision : 8ae516e972fa5ba22be2d5ef80194bf08ff921fa
This commit is contained in:
parent
7bb1915c63
commit
575ce29b37
4 changed files with 58 additions and 13 deletions
|
@ -2,23 +2,14 @@
|
|||
#
|
||||
# PROVIDE: nfslock
|
||||
# REQUIRE: portmap
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="nfslock"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/rpc.statd"
|
||||
start_precmd="statd_precmd"
|
||||
|
||||
statd_precmd()
|
||||
{
|
||||
# Check for /proc/fs/nfsd
|
||||
if grep -qs nfsd /proc/filesystems ; then
|
||||
if ! grep -qs "nfsd /proc/fs/nfsd" /proc/mounts ; then
|
||||
mount -t nfsd -o nodev,noexec,nosuid nfsd /proc/fs/nfsd
|
||||
fi
|
||||
fi
|
||||
}
|
||||
pidfile="/var/run/rpc.statd.pid"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue