xref: /freebsd/libexec/rc/rc.d/tlsservd (revision fe6060f10f634930ff71b7c50291ddc610da2475)
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