mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 00:15:16 -04:00
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
25 lines
444 B
Bash
Executable file
25 lines
444 B
Bash
Executable file
#!/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"
|