Added nfs-utils-1.1.5, with support for both client/server startup.
--HG-- extra : convert_revision : 3e6b8cb896449049f9d84faa9578ef6ecf9d18b8
This commit is contained in:
19
templates/nfs-utils/files/mountd
Executable file
19
templates/nfs-utils/files/mountd
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: mountd
|
||||
# REQUIRE: portmap nfslock
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="mountd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/rpc.mountd"
|
||||
start_precmd="mountd_precmd"
|
||||
|
||||
mountd_precmd()
|
||||
{
|
||||
/usr/sbin/exportfs -r
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
19
templates/nfs-utils/files/nfsd
Executable file
19
templates/nfs-utils/files/nfsd
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: nfsd
|
||||
# REQUIRE: mountd
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="nfsd"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/rpc.nfsd"
|
||||
start_postcmd="nfsd_postcmd"
|
||||
|
||||
nfsd_postcmd()
|
||||
{
|
||||
/usr/sbin/sm-notify ${smnotify_args}
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
24
templates/nfs-utils/files/nfslock
Executable file
24
templates/nfs-utils/files/nfslock
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# PROVIDE: nfslock
|
||||
# REQUIRE: portmap
|
||||
|
||||
$_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
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
||||
Reference in New Issue
Block a user