summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2019-09-08 13:50:05 +0300
committerMikle Kolyada <zlogene@gentoo.org>2019-09-08 13:55:17 +0300
commit9b83bcf936bc5b844cf785979dc631940d147a7d (patch)
tree57a5ce63e4d8e5e10ed1fa4aadc5617b045562aa /sys-cluster/rdma-core/files
parentsci-geosciences/gnome-maps: remove old (diff)
downloadgentoo-9b83bcf936bc5b844cf785979dc631940d147a7d.tar.gz
gentoo-9b83bcf936bc5b844cf785979dc631940d147a7d.tar.bz2
gentoo-9b83bcf936bc5b844cf785979dc631940d147a7d.zip
sys-cluster/rdma-core: initial commit
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Mikle Kolyada <zlogene@gentoo.org>
Diffstat (limited to 'sys-cluster/rdma-core/files')
-rw-r--r--sys-cluster/rdma-core/files/ibacm.init7
-rw-r--r--sys-cluster/rdma-core/files/iwpmd.init7
-rw-r--r--sys-cluster/rdma-core/files/srpd.init20
3 files changed, 34 insertions, 0 deletions
diff --git a/sys-cluster/rdma-core/files/ibacm.init b/sys-cluster/rdma-core/files/ibacm.init
new file mode 100644
index 000000000000..719accfa95c8
--- /dev/null
+++ b/sys-cluster/rdma-core/files/ibacm.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/ibacm"
+pidfile="/run/${SVCNAME}.pid"
+start_stop_daemon_args="-b -m"
diff --git a/sys-cluster/rdma-core/files/iwpmd.init b/sys-cluster/rdma-core/files/iwpmd.init
new file mode 100644
index 000000000000..b1ffa33fcc8a
--- /dev/null
+++ b/sys-cluster/rdma-core/files/iwpmd.init
@@ -0,0 +1,7 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/iwpmd"
+pidfile="/run/${SVCNAME}.pid"
+start_stop_daemon_args="-b -m"
diff --git a/sys-cluster/rdma-core/files/srpd.init b/sys-cluster/rdma-core/files/srpd.init
new file mode 100644
index 000000000000..c54e5d81ed58
--- /dev/null
+++ b/sys-cluster/rdma-core/files/srpd.init
@@ -0,0 +1,20 @@
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command="/usr/sbin/srp_daemon.sh"
+pidfile="/run/${SVCNAME}.pid"
+start_stop_daemon_args="-b -m"
+
+rdma_config="/etc/infiniband/openib.conf"
+[ -f ${rdma_config} ] && source ${rdma_config}"
+
+[ ${SRP_DEFAULT_TL_RETRY_COUNT} ] && command_args="-l ${SRP_DEFAULT_TL_RETRY_COUNT}"
+
+start_pre() {
+ if ! [ -e /sys/module/ib_srp ]; then
+ eerror "SRP kernel module is not loaded, unable to start SRP daemon"
+ return 1
+ fi
+ return 0
+}