]> sourceware.org Git - lvm2.git/commitdiff
Fix bug 632681: cmirrord shouldn't fail 'start' if already started
authorJonathan Earl Brassow <jbrassow@redhat.com>
Tue, 4 Jan 2011 21:16:54 +0000 (21:16 +0000)
committerJonathan Earl Brassow <jbrassow@redhat.com>
Tue, 4 Jan 2011 21:16:54 +0000 (21:16 +0000)
Return 0 from the cmirrord init script if the daemon is already
running.

http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptact.html

scripts/cmirrord_init_red_hat.in

index ab3b7fb47acc0afe22deb188e9e6028e7225e835..a7150781634d1c71b0a5db90c5c5e04123e95b8a 100755 (executable)
@@ -21,6 +21,7 @@ LOCK_FILE="/var/lock/subsys/$DAEMON"
 
 start()
 {
+       rtrn=0
        if ! pidof $DAEMON > /dev/null 
        then 
                echo -n "Starting $DAEMON: "
This page took 0.033177 seconds and 5 git commands to generate.