2009-06-02 22:15:47 +00:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
# PROVIDE: nfsuserd
|
|
|
|
# REQUIRE: NETWORKING
|
|
|
|
# KEYWORD: nojail shutdown
|
|
|
|
|
|
|
|
. /etc/rc.subr
|
|
|
|
|
|
|
|
name="nfsuserd"
|
2016-04-23 16:10:54 +00:00
|
|
|
desc="Load user and group information into the kernel for NFSv4 services and support manage-gids for all NFS versions"
|
2012-01-14 02:18:41 +00:00
|
|
|
rcvar="nfsuserd_enable"
|
2009-06-02 22:15:47 +00:00
|
|
|
command="/usr/sbin/${name}"
|
|
|
|
sig_stop="USR1"
|
|
|
|
|
|
|
|
load_rc_config $name
|
2015-11-30 22:29:11 +00:00
|
|
|
start_precmd="nfsuserd_precmd"
|
|
|
|
|
|
|
|
nfsuserd_precmd()
|
|
|
|
{
|
|
|
|
if checkyesno nfs_server_managegids; then
|
|
|
|
rc_flags="-manage-gids ${nfsuserd_flags}"
|
|
|
|
fi
|
|
|
|
return 0
|
|
|
|
}
|
2009-06-02 22:15:47 +00:00
|
|
|
|
|
|
|
run_rc_command "$1"
|