diff options
author | Patrick Lauer <patrick@gentoo.org> | 2021-03-01 16:51:13 +0000 |
---|---|---|
committer | Patrick Lauer <patrick@gentoo.org> | 2021-03-01 16:52:09 +0000 |
commit | aacb74f137b5f2dd6f9a0edeef3fa1dcd80897c7 (patch) | |
tree | b20dfb792045e9d66d8de38499b8464819689ee0 /sys-fabric | |
parent | net-misc/turbovnc: add slew of extra X11 deps (diff) | |
download | gentoo-aacb74f137b5f2dd6f9a0edeef3fa1dcd80897c7.tar.gz gentoo-aacb74f137b5f2dd6f9a0edeef3fa1dcd80897c7.tar.bz2 gentoo-aacb74f137b5f2dd6f9a0edeef3fa1dcd80897c7.zip |
sys-fabric/opensm: Fix init script
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'sys-fabric')
-rw-r--r-- | sys-fabric/opensm/files/opensm.init.d.2 | 22 | ||||
-rw-r--r-- | sys-fabric/opensm/opensm-3.3.23-r1.ebuild (renamed from sys-fabric/opensm/opensm-3.3.23.ebuild) | 2 |
2 files changed, 23 insertions, 1 deletions
diff --git a/sys-fabric/opensm/files/opensm.init.d.2 b/sys-fabric/opensm/files/opensm.init.d.2 new file mode 100644 index 000000000000..238449cb3f40 --- /dev/null +++ b/sys-fabric/opensm/files/opensm.init.d.2 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + after net # ip net seems to be needed to perform management. +} + +prog=/usr/sbin/opensm + +start() { + ebegin "Starting OpenSM Infiniband Subnet Manager" + start-stop-daemon --start --background --exec $prog -- $OSM_OPTIONS + eend $? +} + +stop() { + ebegin "Stopping OpenSM Infiniband Subnet Manager" + start-stop-daemon --stop --exec $prog + eend $? +} + diff --git a/sys-fabric/opensm/opensm-3.3.23.ebuild b/sys-fabric/opensm/opensm-3.3.23-r1.ebuild index ffcf8f39bf14..12fc2994bc55 100644 --- a/sys-fabric/opensm/opensm-3.3.23.ebuild +++ b/sys-fabric/opensm/opensm-3.3.23-r1.ebuild @@ -38,7 +38,7 @@ src_configure() { src_install() { default newconfd "${FILESDIR}/opensm.conf.d" opensm - newinitd "${FILESDIR}/opensm.init.d" opensm + newinitd "${FILESDIR}/opensm.init.d.2" opensm insinto /etc/logrotate.d newins "${S}/scripts/opensm.logrotate" opensm # we dont need this int script |