Add rpc_statd_flags and rpc_lockd_flags options to allow options to be

passed to rpc.statd and rpc.lockd

MFC after:	1 week
This commit is contained in:
Matteo Riondato 2007-04-04 13:16:18 +00:00
parent ad0552863b
commit f3636019cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168360
5 changed files with 45 additions and 1 deletions

View file

@ -264,7 +264,9 @@ weak_mountd_authentication="NO" # Allow non-root mount requests to be served.
nfs_reserved_port_only="NO" # Provide NFS only on secure port (or NO).
nfs_bufpackets="" # bufspace (in packets) for client
rpc_lockd_enable="NO" # Run NFS rpc.lockd needed for client/server.
rpc_lockd_flags="" # Flags to rpc.lockd (if enabled).
rpc_statd_enable="NO" # Run NFS rpc.statd needed for client/server.
rpc_statd_flags="" # Flags to rpc.statd (if enabled).
rpcbind_enable="NO" # Run the portmapper service (YES/NO).
rpcbind_program="/usr/sbin/rpcbind" # path to rpcbind, if you want a different one.
rpcbind_flags="" # Flags to rpcbind (if enabled).

View file

@ -29,6 +29,14 @@ nfslocking_precmd()
then
force_depend rpcbind || return 1
fi
if [ $name = "statd" ]
then
rc_flags=${rpc_statd_flags}
elif [ $name = "lockd" ]
then
rc_flags=${rpc_lockd_flags}
fi
}
start_precmd="nfslocking_precmd"

View file

@ -29,6 +29,14 @@ nfslocking_precmd()
then
force_depend rpcbind || return 1
fi
if [ $name = "statd" ]
then
rc_flags=${rpc_statd_flags}
elif [ $name = "lockd" ]
then
rc_flags=${rpc_lockd_flags}
fi
}
start_precmd="nfslocking_precmd"

View file

@ -29,6 +29,14 @@ nfslocking_precmd()
then
force_depend rpcbind || return 1
fi
if [ $name = "statd" ]
then
rc_flags=${rpc_statd_flags}
elif [ $name = "lockd" ]
then
rc_flags=${rpc_lockd_flags}
fi
}
start_precmd="nfslocking_precmd"

View file

@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd March 11, 2007
.Dd April 4, 2007
.Dt RC.CONF 5
.Os
.Sh NAME
@ -1724,6 +1724,15 @@ If set to
and also an NFS server or client, run
.Xr rpc.lockd 8
at boot time.
.It Va rpc_lockd_flags
.Pq Vt str
If
.Va rpc_lockd_enable
is set to
.Dq Li YES ,
these are the flags to pass to the
.Xr rpc.lockd 8
daemon.
.It Va rpc_statd_enable
.Pq Vt bool
If set to
@ -1731,6 +1740,15 @@ If set to
and also an NFS server or client, run
.Xr rpc.statd 8
at boot time.
.It Va rpc_statd_flags
.Pq Vt str
If
.Va rpc_statd_enable
is set to
.Dq Li YES ,
these are the flags to pass to the
.Xr rpc.statd 8
daemon.
.It Va rpcbind_program
.Pq Vt str
Path to