Files
gentoo/sys-apps/ipmitool/files/log_bmc.initd
John Helmert III 9bace2960c sys-apps/ipmitool: add 1.8.19
Don't use a tarball for patches, stop tying initscript to PV, drop
obolete Debian handling cruft, various other simplifications and style
fixes.

Signed-off-by: John Helmert III <ajak@gentoo.org>
2022-09-09 22:38:12 -05:00

26 lines
570 B
Plaintext

#!/sbin/openrc-run
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
name="log_bmc"
description="Add SEL entries to indicate OS Boot status"
command=/usr/libexec/log_bmc.sh
command_args=""
: "${DEVICENUM:=0}" # which BMC
required_files=/dev/ipmi${DEVICENUM}
depend() {
use modules
after ipmievd # to capture our own log event
keyword -docker -lxc -prefix -systemd-nspawn
}
start() {
# TODO: should this keep start so it only fires once per boot?
"${command}" os_boot
}
stop() {
"${command}" os_shutdown
}