You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-apps/ipmitool/files/log_bmc-1.8.18.initd

26 lines
570 B

#!/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
}