xref: /freebsd/libexec/rc/rc.d/tlsservd (revision 61b07f8aa52844b21637ac264ea134c1aef48cb7)
1#!/bin/sh
2#
3#
4
5# PROVIDE: tlsservd
6# REQUIRE: NETWORKING root mountcritlocal sysctl
7# BEFORE: nfsd
8# KEYWORD: nojailvnet shutdown
9
10. /etc/rc.subr
11
12name="tlsservd"
13desc="NFS over TLS server side daemon"
14rcvar="tlsservd_enable"
15command="/usr/sbin/rpc.${name}"
16
17: ${tlsservd_svcj_options:="net_basic nfsd"}
18
19pidfile="/var/run/rpc.${name}.pid"
20required_files="/etc/rpc.tlsservd/cert.pem /etc/rpc.tlsservd/certkey.pem"
21extra_commands="reload"
22
23
24load_rc_config $name
25
26run_rc_command "$1"
27