Skip to contentSkip to conversation

opensm: /etc/init.d/opensmd: Correct LSB header

PATCH New Bart Van Assche 1 participant 1 message Sep 12, 2012 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 3/6 opensm: /etc/init.d/opensmd: Correct LSB header

Make sure that opensm is started after syslog and openibd and also that opensm is stopped before syslog or openibd is stopped. This information is essential for e.g. systemctl.

---
 configure.in           |    2 ++
 scripts/opensm.init.in |    4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)
configure.in +1 -0
index e48c066..015f74c 100644
@@ -11,6 +11,8 @@ AM_INIT_AUTOMAKE
 AC_SUBST(RELEASE, ${RELEASE:-unknown})
 AC_SUBST(TARBALL, ${TARBALL:-${PACKAGE}-${VERSION}.tar.gz})
 +AC_SUBST(RDMA_SERVICE, ["$({ for f in /etc/init.d/rdma /etc/init.d/openibd; do test -e $f && cat $f; done | sed -n 's/^# Provides: *//p'; echo openib; } 2>/dev/null | head -n 1)"])
+
 dnl NOTE: AC_DEFINE's and AC_DEFINE_UNQUOTED's which are used in header files
 dnl       MUST have a corresponding entry in include/opensm/osm_config.h.in to
 dnl       ensure plugin compatibility.
scripts/opensm.init.in +2 -2
index 9ec08a2..01d2bb9 100644
@@ -7,8 +7,8 @@
 #
 ### BEGIN INIT INFO
 # Provides: opensm
-# Required-Start: $syslog
-# Required-Stop:
+# Required-Start: $syslog @RDMA_SERVICE@
+# Required-Stop: $syslog @RDMA_SERVICE@
 # Default-Start: 2 3 5
 # Default-Stop: 0 1 4 6
 # Description:  Manage OpenSM
Signature · 6 lines
1.7.7

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html