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 17pidfile="/var/run/rpc.${name}.pid" 18required_files="/etc/rpc.tlsservd/cert.pem /etc/rpc.tlsservd/certkey.pem" 19extra_commands="reload" 20 21 22load_rc_config $name 23 24run_rc_command "$1" 25