]> sourceware.org Git - lvm2.git/commitdiff
Fix rpmlint in clvmd initscript
authorMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2009 18:34:10 +0000 (18:34 +0000)
committerMike Snitzer <snitzer@redhat.com>
Fri, 29 May 2009 18:34:10 +0000 (18:34 +0000)
Added missing LSB stanza lines.
Added reload capability.
Remaining warning (incoherent-init-script-name) is not relevant.

WHATS_NEW
scripts/clvmd_init_red_hat.in

index c10ddc45f78bbf62e1da4a11a32957ff9d7acf3d..928fe3c551a26d9e3f893cd2b86f53f8781e4303 100644 (file)
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
 Version 2.02.48 - 
 ===============================
+  Fix rpmlint in clvmd initscript
   When creating new LV, double-check that name is not already in use.
   Remove /dev/vgname/lvname symlink automatically if LV is no longer visible.
   Rename internal vorigin LV to match visible LV.
index c77421b7ca396406460a19016165682852d4b089..0ac4b35aa001b66f1cf08bad29077ffcce95a4cd 100644 (file)
@@ -6,7 +6,12 @@
 # For Red-Hat-based distributions such as Fedora, RHEL, CentOS.
 #             
 ### BEGIN INIT INFO
-# Provides: 
+# Provides: clvmd
+# Required-Start: $local_fs
+# Required-Stop: $local_fs
+# Default-Start: 2 3 4 5
+# Default-Stop: 0 1 6
+# Short-Description: Clustered LVM Daemon
 ### END INIT INFO
 
 . /etc/init.d/functions
@@ -109,6 +114,19 @@ wait_for_finish()
        fi
 }
 
+reload() {
+       $DAEMON -R
+}
+
+rh_status() {
+       status $DAEMON
+}
+
+rh_status_q() {
+       rh_status >/dev/null 2>&1
+}
+
+
 rtrn=1
 
 # See how we were called.
@@ -134,15 +152,20 @@ case "$1" in
        rtrn=$?
        ;;
 
+  reload)
+       rh_status_q || exit 7
+       reload
+       ;;
+
   status)
-       status $DAEMON
+       rh_status
        rtrn=$?
        vols=$( $LVDISPLAY -C --nohead 2> /dev/null | awk '($3 ~ /....a./) {print $1}' )
        echo active volumes: ${vols:-"(none)"}
        ;;
 
   *)
-       echo $"Usage: $0 {start|stop|restart|status}"
+       echo $"Usage: $0 {start|stop|restart|reload|status}"
        ;;
 esac
 
This page took 0.042648 seconds and 5 git commands to generate.