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