Changeset View
Changeset View
Standalone View
Standalone View
libexec/rc/rc.d/mountd
| Show All 11 Lines | |||||
| desc="Service remote NFS mount requests" | desc="Service remote NFS mount requests" | ||||
| rcvar="mountd_enable" | rcvar="mountd_enable" | ||||
| command="/usr/sbin/${name}" | command="/usr/sbin/${name}" | ||||
| pidfile="/var/run/${name}.pid" | pidfile="/var/run/${name}.pid" | ||||
| required_files="/etc/exports" | required_files="/etc/exports" | ||||
| start_precmd="mountd_precmd" | start_precmd="mountd_precmd" | ||||
| extra_commands="reload" | extra_commands="reload" | ||||
| : ${mountd_svcj_options:="net_basic nfsd"} | |||||
| mountd_precmd() | mountd_precmd() | ||||
| { | { | ||||
| # Load the modules now, so that the vfs.nfsd sysctl | # Load the modules now, so that the vfs.nfsd sysctl | ||||
| # oids are available. | # oids are available. | ||||
| load_kld nfsd || return 1 | load_kld nfsd || return 1 | ||||
| # Do not force rpcbind to be running for an NFSv4 only server. | # Do not force rpcbind to be running for an NFSv4 only server. | ||||
| Show All 35 Lines | mountd_precmd() | ||||
| fi | fi | ||||
| rm -f /var/db/mountdtab | rm -f /var/db/mountdtab | ||||
| ( umask 022 ; > /var/db/mountdtab ) || | ( umask 022 ; > /var/db/mountdtab ) || | ||||
| err 1 'Cannot create /var/db/mountdtab' | err 1 'Cannot create /var/db/mountdtab' | ||||
| } | } | ||||
| load_rc_config $name | load_rc_config $name | ||||
| # precmd is not compatible with svcj | |||||
| mountd_svcj="NO" | |||||
| run_rc_command "$1" | run_rc_command "$1" | ||||