summaryrefslogtreecommitdiff
path: root/scripts/cmirrord_init_red_hat.in
diff options
context:
space:
mode:
authorJonathan Earl Brassow <jbrassow@redhat.com>2011-01-04 21:16:54 +0000
committerJonathan Earl Brassow <jbrassow@redhat.com>2011-01-04 21:16:54 +0000
commitf25f57ae75d5ee3ddc55fce46d4240d0e9724ee3 (patch)
tree384df68ab6ad0e3f4287ee48bd30d132f3417e80 /scripts/cmirrord_init_red_hat.in
parent8d5391f1c3e9f19eb6467747fbc3855caab7b74f (diff)
downloadlvm2-f25f57ae75d5ee3ddc55fce46d4240d0e9724ee3.tar.gz
Fix bug 632681: cmirrord shouldn't fail 'start' if already started
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
Diffstat (limited to 'scripts/cmirrord_init_red_hat.in')
-rwxr-xr-xscripts/cmirrord_init_red_hat.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/cmirrord_init_red_hat.in b/scripts/cmirrord_init_red_hat.in
index ab3b7fb47..a71507816 100755
--- a/scripts/cmirrord_init_red_hat.in
+++ b/scripts/cmirrord_init_red_hat.in
@@ -21,6 +21,7 @@ LOCK_FILE="/var/lock/subsys/$DAEMON"
start()
{
+ rtrn=0
if ! pidof $DAEMON > /dev/null
then
echo -n "Starting $DAEMON: "