Package: gozerbot
Version: 0.7.1.1-1
Severity: minor

The example cron job for restarting gozerbot from 
/usr/share/gozerbot/gozerbot.cron looks like this:

------------------------
PID=`cat gozerbot.pid`

if test -r gozerbot.pid
then
  if `kill -CHLD $PID 1>/dev/null 2>&1`
  then
    exit 0
  else
    ./runbot 1>log 2&1 &
  fi
fi
------------------------

However:

1. I have yet to see something happening with gozerbot, when I send it a 
SIGCHILD. Does it have
   any effect at all?

2. under what condition should the kill command fail (as above in the code) and 
why should
   gozerbot be started in that case?

*t

-- System Information:
Debian Release: lenny/sid
  APT prefers intrepid-updates
  APT policy: (500, 'intrepid-updates'), (500, 'intrepid-security'), (500, 
'intrepid-backports'), (500, 'intrepid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.27-11-generic (SMP w/2 CPU cores)
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to