blob: 28d21b2649920a34d3f36806ad9eebd51fb1d5d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/sbin/srp_daemon.sh"
pidfile="/run/${SVCNAME}.pid"
command_background="yes"
rdma_config="/etc/infiniband/openib.conf"
[ -f ${rdma_config} ] && . ${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
}
|