#!/bin/sh

if test -r ~/.dreambot.pid; then
  botpid=`cat ~/.dreambot.pid`
  if `kill -CHLD $botpid >/dev/null 2>&1`; then
    exit 0
  fi
  rm -f ~/.dreambot.pid
fi

./dreambot.pl $*
