mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Now that commit cbbb22031f is in main,
it is possible to run nfsd(8), nfsuserd(8), mountd(8),
gssd(8) and rpc.tlsservd(8) in an appropriately configured vnet
prison if the "allow.nfsd" option is specified in jail.conf.
This patch fixes the rc scripts for this.
Mostly just replaces the "nojail" KEYWORD with "nojailvnet",
but also avoids setting vfs.nfsd.srvmaxio in a prison, since it
must be set outside of the prisons and applies to all
nfsd(8) instances.
Reviewed by: jamie
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D38809
25 lines
448 B
Bash
Executable file
25 lines
448 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: tlsservd
|
|
# REQUIRE: NETWORKING root mountcritlocal sysctl
|
|
# BEFORE: nfsd
|
|
# KEYWORD: nojailvnet shutdown
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="tlsservd"
|
|
desc="NFS over TLS server side daemon"
|
|
rcvar="tlsservd_enable"
|
|
command="/usr/sbin/rpc.${name}"
|
|
|
|
pidfile="/var/run/rpc.${name}.pid"
|
|
required_files="/etc/rpc.tlsservd/cert.pem /etc/rpc.tlsservd/certkey.pem"
|
|
extra_commands="reload"
|
|
|
|
|
|
load_rc_config $name
|
|
|
|
run_rc_command "$1"
|