Fix bashisms in samba event script.
authorMathieu Parent <math.parent@gmail.com>
Thu, 27 Aug 2009 21:36:07 +0000 (23:36 +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 0310a6b17d6167c46482a07c6cd96bcabda6ffbc)

ctdb/config/events.d/50.samba

index 54cf9ceb611b9ae7fb37b90dad465e425eb44bdf..b413a13a3eb04a1873c6216a293d44c9e886b8af 100755 (executable)
@@ -73,7 +73,7 @@ testparm_background_update() {
        while [ $timeleft -gt 0 ]; do
            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 ] || {
@@ -99,7 +99,7 @@ testparm_background_update() {
        done
        # it took more than 10 seconds - kill it off
        rm -f "${tmpfile}"
-       kill -9 "$pid" > /dev/null 2>&1
+       /bin/kill -9 "$pid" > /dev/null 2>&1
        echo "50.samba: timed out updating smbconf cache in background"
        exit 1
     ) &