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 17: ${nfsuserd_svcj_options:="net_basic nfsd"} 18 19load_rc_config $name 20# precmd is not compatible with svcj 21nfsuserd_svcj="NO" 22start_precmd="nfsuserd_precmd" 23 24nfsuserd_precmd() 25{ 26 if checkyesno nfs_server_managegids; then 27 rc_flags="-manage-gids ${nfsuserd_flags}" 28 fi 29 return 0 30} 31 32run_rc_command "$1" 33