summaryrefslogtreecommitdiff
path: root/sys-apps/ipmitool/files/exchange-bmc-os-info.initd
blob: 9c63983f21f3258eec000443da83769de0df7ffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
}