xref: /freebsd/libexec/rc/rc.d/nfsuserd (revision 2b8331622f0b212cf3bb4fc4914a501e5321d506)
1#!/bin/sh
2#
3# $FreeBSD$
4#
5
6# PROVIDE: nfsuserd
7# REQUIRE: NETWORKING
8# KEYWORD: nojailvnet shutdown
9
10. /etc/rc.subr
11
12name="nfsuserd"
13desc="Load user and group information into the kernel for NFSv4 services and support manage-gids for all NFS versions"
14rcvar="nfsuserd_enable"
15command="/usr/sbin/${name}"
16sig_stop="USR1"
17
18load_rc_config $name
19start_precmd="nfsuserd_precmd"
20
21nfsuserd_precmd()
22{
23	if checkyesno nfs_server_managegids; then
24		rc_flags="-manage-gids ${nfsuserd_flags}"
25	fi
26	return 0
27}
28
29run_rc_command "$1"
30