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/exchange-bmc-os-info.initd | |
parent | b9baffd9af9383cc886b1583814fe15163017d80 (diff) |
gentoo auto-resync : 10:09:2022 - 10:42:05
Diffstat (limited to 'sys-apps/ipmitool/files/exchange-bmc-os-info.initd')
-rw-r--r-- | sys-apps/ipmitool/files/exchange-bmc-os-info.initd | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sys-apps/ipmitool/files/exchange-bmc-os-info.initd b/sys-apps/ipmitool/files/exchange-bmc-os-info.initd new file mode 100644 index 000000000000..9c63983f21f3 --- /dev/null +++ b/sys-apps/ipmitool/files/exchange-bmc-os-info.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# /etc/init.d/exchange-bmc-os-info + +name="exchange-bmc-os-info" +description="Exchange Information between BMC and OS" +command=/usr/libexec/exchange-bmc-os-info +command_args="" +: "${DEVICENUM:=0}" # which BMC +required_files=/dev/ipmi${DEVICENUM} + +depend() { + use hostname modules + keyword -docker -lxc -prefix -systemd-nspawn +} + +start() { + "${command}" start +} +stop() { + "${command}" stop +} |