From 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 10 Sep 2022 10:42:05 +0100 Subject: gentoo auto-resync : 10:09:2022 - 10:42:05 --- sys-apps/ipmitool/files/log_bmc.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 sys-apps/ipmitool/files/log_bmc.initd (limited to 'sys-apps/ipmitool/files/log_bmc.initd') diff --git a/sys-apps/ipmitool/files/log_bmc.initd b/sys-apps/ipmitool/files/log_bmc.initd new file mode 100644 index 000000000000..4064edf3b84d --- /dev/null +++ b/sys-apps/ipmitool/files/log_bmc.initd @@ -0,0 +1,25 @@ +#!/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 +} -- cgit v1.2.3