ports/security/tpm2-abrmd/files/tpm2-abrmd.in
2021-04-06 16:31:13 +02:00

24 lines
425 B
Bash

#!/bin/sh
# PROVIDE: tpm2_abrmd
# REQUIRE: DAEMON %%DBUS_DAEMON%%
# KEYWORD: shutdown
#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# tpm2_abrmd_enable="YES"
#
. /etc/rc.subr
name=tpm2_abrmd
desc=TPM2 Access Broker & Resource Management Daemon
rcvar=tpm2_abrmd_enable
load_rc_config ${name}
: ${tpm2_abrmd_enable:=NO}
command=%%PREFIX%%/sbin/tpm2-abrmd
tpm2_abrmd_user=_tss
run_rc_command "$1"