#!/bin/sh mypid=`pidof /usr/sbin/winbindd` if [ -z "$mypid" ] then /usr/sbin/winbindd -l ./log/logfifo sleep 2 mypid=`pidof /usr/sbin/winbindd` fi exec /usr/bin/watchpid $mypid