diff --git a/libexec/rc/rc.d/lockd b/libexec/rc/rc.d/lockd index 565ba35164eb..894b3c136690 100755 --- a/libexec/rc/rc.d/lockd +++ b/libexec/rc/rc.d/lockd @@ -1,32 +1,32 @@ #!/bin/sh # # FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm # $FreeBSD$ # # PROVIDE: lockd -# REQUIRE: nfsclient nfsd rpcbind statd +# REQUIRE: nfsclient rpcbind statd # BEFORE: DAEMON # KEYWORD: nojail shutdown . /etc/rc.subr name="lockd" desc="NFS file locking daemon" rcvar=rpc_lockd_enable command="/usr/sbin/rpc.${name}" start_precmd='lockd_precmd' # Make sure that we are either an NFS client or server, and that we get # the correct flags from rc.conf(5). # lockd_precmd() { force_depend rpcbind || return 1 force_depend statd rpc_statd || return 1 rc_flags=${rpc_lockd_flags} } load_rc_config $name run_rc_command $1 diff --git a/libexec/rc/rc.d/mountd b/libexec/rc/rc.d/mountd index ba573ad732cc..0c6e75f07d64 100755 --- a/libexec/rc/rc.d/mountd +++ b/libexec/rc/rc.d/mountd @@ -1,70 +1,70 @@ #!/bin/sh # # $FreeBSD$ # # PROVIDE: mountd -# REQUIRE: NETWORKING rpcbind quota +# REQUIRE: NETWORKING rpcbind quota mountlate # KEYWORD: nojail shutdown . /etc/rc.subr name="mountd" desc="Service remote NFS mount requests" rcvar="mountd_enable" command="/usr/sbin/${name}" pidfile="/var/run/${name}.pid" required_files="/etc/exports" start_precmd="mountd_precmd" extra_commands="reload" mountd_precmd() { # Load the modules now, so that the vfs.nfsd sysctl # oids are available. load_kld nfsd || return 1 # Do not force rpcbind to be running for an NFSv4 only server. # if checkyesno nfsv4_server_only; then echo 'NFSv4 only server' sysctl vfs.nfsd.server_min_nfsvers=4 > /dev/null sysctl vfs.nfsd.server_max_nfsvers=4 > /dev/null rc_flags="${rc_flags} -R" else force_depend rpcbind || return 1 if ! checkyesno nfsv4_server_enable; then sysctl vfs.nfsd.server_max_nfsvers=3 > /dev/null fi fi # mountd flags will differ depending on rc.conf settings # if checkyesno nfs_server_enable || checkyesno nfsv4_server_only; then if checkyesno weak_mountd_authentication; then if checkyesno nfsv4_server_only; then echo -n 'weak_mountd_authentication ' echo -n 'incompatible with nfsv4_server_only, ' echo 'ignored' else rc_flags="${rc_flags} -n" fi fi else if checkyesno mountd_enable; then checkyesno weak_mountd_authentication && rc_flags="-n" fi fi if checkyesno zfs_enable; then rc_flags="${rc_flags} /etc/exports /etc/zfs/exports" fi rm -f /var/db/mountdtab ( umask 022 ; > /var/db/mountdtab ) || err 1 'Cannot create /var/db/mountdtab' } load_rc_config $name run_rc_command "$1" diff --git a/libexec/rc/rc.d/statd b/libexec/rc/rc.d/statd index 2ff8d45ffde9..e1150c67a16f 100755 --- a/libexec/rc/rc.d/statd +++ b/libexec/rc/rc.d/statd @@ -1,31 +1,31 @@ #!/bin/sh # # FreeBSD History: src/etc/rc.d/nfslocking,v 1.11 2004/10/07 13:55:26 mtm Exp # $FreeBSD$ # # PROVIDE: statd -# REQUIRE: nfsclient nfsd rpcbind +# REQUIRE: nfsclient rpcbind # BEFORE: DAEMON # KEYWORD: nojail shutdown . /etc/rc.subr name="statd" desc="host status monitoring daemon" rcvar=rpc_statd_enable command="/usr/sbin/rpc.${name}" start_precmd='statd_precmd' # Make sure that we are either an NFS client or server, and that we get # the correct flags from rc.conf(5). # statd_precmd() { force_depend rpcbind || return 1 rc_flags=${rpc_statd_flags} } load_rc_config $name run_rc_command $1