diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-10 10:42:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-10 10:42:05 +0100 |
commit | 946859e0e36904cffb3e0ccbccb6b7b1347c1cc8 (patch) | |
tree | 0acec77e64f765c013ceda868659a8e125e429df /sys-apps/ipmitool/files/log_bmc.initd | |
parent | b9baffd9af9383cc886b1583814fe15163017d80 (diff) |
gentoo auto-resync : 10:09:2022 - 10:42:05
Diffstat (limited to 'sys-apps/ipmitool/files/log_bmc.initd')
-rw-r--r-- | sys-apps/ipmitool/files/log_bmc.initd | 25 |
1 files changed, 25 insertions, 0 deletions
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 +} |