mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
nfs-over-tls: add rc scripts for rpc.tlsclntd and rpc.tlsservd
Add rc.d scripts that control the recently committed rpc.tlsclntd(8) and rpc.tlsservd(8) daemons. Reviewed by: gbe MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D28432
This commit is contained in:
parent
b9cbc85d72
commit
2f48313ab2
@ -385,6 +385,10 @@ nfscbd_enable="NO" # NFSv4 client side callback daemon
|
||||
nfscbd_flags="" # Flags for nfscbd
|
||||
nfsuserd_enable="NO" # NFSv4 user/group name mapping daemon
|
||||
nfsuserd_flags="" # Flags for nfsuserd
|
||||
tlsclntd_enable="NO" # Run rpc.tlsclntd needed for NFS-over-TLS mount
|
||||
tlsclntd_flags="" # Flags for rpc.tlsclntd
|
||||
tlsservd_enable="NO" # Run rpc.tlsservd needed for NFS-over-TLS nfsd
|
||||
tlsservd_flags="" # Flags for rpc.tlsservd
|
||||
|
||||
### Network Time Services options: ###
|
||||
timed_enable="NO" # Run the time daemon (or NO).
|
||||
|
@ -271,6 +271,10 @@ _opensm= opensm
|
||||
|
||||
.if ${MK_OPENSSL} != "no"
|
||||
CONFS+= keyserv
|
||||
.if ${MK_OPENSSL_KTLS} != "no"
|
||||
CONFS+= tlsclntd \
|
||||
tlsservd
|
||||
.endif
|
||||
.endif
|
||||
|
||||
.if ${MK_OPENSSH} != "no"
|
||||
|
21
libexec/rc/rc.d/tlsclntd
Executable file
21
libexec/rc/rc.d/tlsclntd
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: tlsclntd
|
||||
# REQUIRE: NETWORKING root mountcritlocal sysctl
|
||||
# BEFORE: nfscbd
|
||||
# KEYWORD: nojail shutdown
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name="tlsclntd"
|
||||
desc="NFS over TLS client side daemon"
|
||||
rcvar="tlsclntd_enable"
|
||||
command="/usr/sbin/rpc.${name}"
|
||||
pidfile="/var/run/rpc.${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
|
||||
run_rc_command "$1"
|
25
libexec/rc/rc.d/tlsservd
Executable file
25
libexec/rc/rc.d/tlsservd
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: tlsservd
|
||||
# REQUIRE: NETWORKING root mountcritlocal sysctl
|
||||
# BEFORE: nfsd
|
||||
# KEYWORD: nojail 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"
|
Loading…
Reference in New Issue
Block a user