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