diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2020-10-24 14:37:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2020-10-24 15:12:00 -0700 |
commit | 436e19902cf8f23717c3605903248dcb273b890e (patch) | |
tree | 6ccc7959c9ff75e645d86e73bc991e0d9231d4e8 /sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd | |
parent | sci-libs/trilinos: version bump to 13.0.0 (diff) | |
download | gentoo-436e19902cf8f23717c3605903248dcb273b890e.tar.gz gentoo-436e19902cf8f23717c3605903248dcb273b890e.tar.bz2 gentoo-436e19902cf8f23717c3605903248dcb273b890e.zip |
sys-apps/ipmitool: cleanup init & add contrib tools
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd')
-rw-r--r-- | sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd b/sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd new file mode 100644 index 000000000000..e8ef2c39d454 --- /dev/null +++ b/sys-apps/ipmitool/files/ipmitool-1.8.18-ipmievd.initd @@ -0,0 +1,28 @@ +#!/sbin/openrc-run +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# /etc/init.d/ipmievd + +depend() { + use logger modules + keyword -docker -lxc -prefix -systemd-nspawn +} + +# TODO: ipmievd has a mode where it could be used to monitor multiple BMCs via +# DEVICENUM or remote systems, and it would be valid to run multiple instances. +# That is not supported by this init script at this time. + +description="IPMI event daemon for sending events to syslog LOCAL4" + +: "${DEVICENUM:=0}" +: "${INTERFACE:=open}" +: "${COMMAND:=open daemon}" +: "${OPTIONS:=}" + +daemon=ipmievd + +pidfile=/run/${daemon}.pid${DEVICENUM} # see manpage re suffix +command=/usr/sbin/${daemon} +cachefile=/run/${daemon}.${DEVICENUM}.sdr-cache +command_args="-d ${DEVICENUM} -S ${cachefile} -I ${INTERFACE} ${OPTIONS} ${COMMAND} pidfile=${pidfile}" +required_files=/dev/ipmi$DEVICENUM |