PeakPeak Customer Service
support@peakpeak.com
Sun, 22 Jan 2006 20:09:57 -0700
Hi:
We just got our DCC server hooked into the Matrix and it seems to be working
well.
There have been a couple of unexpected exits of dcc. I need a script that
restarts it.
I use something like this on BIND but it doesn't seem to work too well for
dcc, any ideas?
Thanks,
Chris
#!/bin/sh
#
# start and keep named running
#
# based on an idea from
/usr/src/redhat/SOURCES/src/conf/recursive/keep-running
#
trap "" 1
#sleep 60
while :; do
# /var/dcc/libexec/rcDCC start
/var/dcc/libexec/dccd -i1350 -n someplace.com -u100
/bin/logger -p emerg "dcc restart"
mail -s 'dcc restarted!!' some pager@someplace.com < /dev/null
sleep 62
done
exit