echo "$(date) samba exited with status $status" >> $basedir/$SERVERNAME.log
exit $status
}
+
+ case $ENVNAME in
+ *.nmbd|*.smbd|*.winbindd|*.samba)
+ kill $(cat $basedir/../"${ENVNAME%\.*}"/pid/"${ENVNAME##*\.}".pid)
+ ;;
+ esac
+
read pid < $basedir/$SERVERNAME.pid
echo "$(date) Killing samba pid $pid from $$" >> $basedir/$SERVERNAME.log
if [ "$pid" = "$$" ]; then
echo "$(date) waiting in $$" >> $basedir/$SERVERNAME.log
read stdin_var
echo "$(date) EOF on stdin" >> $basedir/$SERVERNAME.log
+
+case $ENVNAME in
+ *.nmbd|*.smbd|*.winbindd|*.samba)
+ kill $(cat $basedir/../"${ENVNAME%\.*}"/pid/"${ENVNAME##*\.}".pid)
+ ;;
+esac
+
read pid < $basedir/$SERVERNAME.pid
echo "$(date) killing $pid" >> $basedir/$SERVERNAME.log
kill $pid 2> /dev/null