summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/defaults/rc.conf2
-rw-r--r--etc/rc.d/lockd8
-rwxr-xr-xetc/rc.d/nfslocking8
-rw-r--r--etc/rc.d/statd8
-rw-r--r--share/man/man5/rc.conf.520
5 files changed, 45 insertions, 1 deletions
diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf
index 114fbc5..908d93e 100644
--- a/etc/defaults/rc.conf
+++ b/etc/defaults/rc.conf
@@ -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).
diff --git a/etc/rc.d/lockd b/etc/rc.d/lockd
index 5853a48..02b6b20 100644
--- a/etc/rc.d/lockd
+++ b/etc/rc.d/lockd
@@ -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"
diff --git a/etc/rc.d/nfslocking b/etc/rc.d/nfslocking
index 5853a48..02b6b20 100755
--- a/etc/rc.d/nfslocking
+++ b/etc/rc.d/nfslocking
@@ -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"
diff --git a/etc/rc.d/statd b/etc/rc.d/statd
index 5853a48..02b6b20 100644
--- a/etc/rc.d/statd
+++ b/etc/rc.d/statd
@@ -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"
diff --git a/share/man/man5/rc.conf.5 b/share/man/man5/rc.conf.5
index 3d28a30..459e344 100644
--- a/share/man/man5/rc.conf.5
+++ b/share/man/man5/rc.conf.5
@@ -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
OpenPOWER on IntegriCloud