[ewg] [PATCH for compat-rdma] /etc/init.d/openibd: Fix LSB header

Bart Van Assche bvanassche at acm.org
Fri Sep 21 04:33:46 PDT 2012


The meaning of the "Required-Stop" tag is which services must be
available during shutdown of a service. Avoid specifying the same
runlevel for the "Default-Start" and "Default-Stop" tag. Also,
the default start runlevels on Debian are 2, 3, 4 and 5.

See also http://refspecs.linuxfoundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/initscrcomconv.html.

Signed-off-by: Bart Van Assche <bvanassche at acm.org>
---
 compat-rdma.spec |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/compat-rdma.spec b/compat-rdma.spec
index 6a10f1c..073b941 100755
--- a/compat-rdma.spec
+++ b/compat-rdma.spec
@@ -359,9 +359,9 @@ if [ -f /etc/SuSE-release ]; then
 ### BEGIN INIT INFO
 # Provides:       openibd
 # Required-Start: $local_fs
-# Required-Stop: opensmd $openiscsi
+# Required-Stop: $local_fs
 # Default-Start:  2 3 5
-# Default-Stop: 0 1 2 6
+# Default-Stop: 0 1 4 6
 # Description:    Activates/Deactivates InfiniBand Driver to \
 #                 start at boot time.
 ### END INIT INFO
@@ -386,9 +386,9 @@ if [ -f /etc/debian_version ]; then
 ### BEGIN INIT INFO
 # Provides:       openibd
 # Required-Start: $local_fs
-# Required-Stop: opensmd $openiscsi
-# Default-Start:  2 3 5
-# Default-Stop: 0 1 2 6
+# Required-Stop: $local_fs
+# Default-Start:  2 3 4 5
+# Default-Stop: 0 1 6
 # Description:    Activates/Deactivates InfiniBand Driver to \
 #                 start at boot time.
 ### END INIT INFO
-- 
1.7.10.4




More information about the ewg mailing list