diff options
author | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-01-04 21:16:54 +0000 |
---|---|---|
committer | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-01-04 21:16:54 +0000 |
commit | f25f57ae75d5ee3ddc55fce46d4240d0e9724ee3 (patch) | |
tree | 384df68ab6ad0e3f4287ee48bd30d132f3417e80 /scripts/cmirrord_init_red_hat.in | |
parent | 8d5391f1c3e9f19eb6467747fbc3855caab7b74f (diff) | |
download | lvm2-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-x | scripts/cmirrord_init_red_hat.in | 1 |
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: " |