Fix bashisms in multipathd event script.
authorMathieu Parent <math.parent@gmail.com>
Thu, 27 Aug 2009 21:35:41 +0000 (23:35 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Sep 2009 07:52:13 +0000 (09:52 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
(This used to be ctdb commit 13b81b6c8e01aa52a31756ecffa797a4761115db)

ctdb/config/events.d/20.multipathd

index 93a58ab5aa0402b02b80d0dd1d45af42cb2b091d..c740d69a7a1fa65ee14aac0a8fd757976354b0a0 100644 (file)
@@ -52,7 +52,7 @@ multipathd_check()
                timeleft=$(($timeleft - 1))
 
                # see if the process still exists
-               kill -0 $pid > /dev/null 2>&1 || {
+               /bin/kill -0 $pid > /dev/null 2>&1 || {
                        # it doesn't exist, grab its exit status
                        wait $pid
                        [ $? = 0 ] || {
@@ -87,7 +87,7 @@ case $cmd in
 
      monitor)
        multipathd_check
-       [ "$?" == "0" ] || {
+       [ "$?" = "0" ] || {
                echo 20.multipathd: monitoring of multipathing failed
                exit 1
        }