|
Re: lug-bg: restart script
- Subject: Re: lug-bg: restart script
- From: bkrosnov@xxxxxxxxxxxxxxxxxx (Boyan Krosnov)
- Date: Wed, 22 Sep 1999 16:30:00 +0300
pyrwo za http i ftp proxy polzwaj SQUID :)
za skript-a ...
neshto ot sort-a na (attachment)
Towa e za edna druga programka ama mislq che imash neshto takowa w
predwid
da znaesh che ako programkata umre s Segmentation fault shte ima
problemi s socket-a kojto trqbwa da timeout-ne (okolo 15 sekundi)
za towa e slojen i wtoriq cikyl.
Boyan
#!/bin/sh
while [ 1 ] ; do
/usr/local/bin/ipxtund -v -d 0 -l /dev/tty11 -f /etc/ipxtund.conf -c 0 -m 0
echo -n "Waiting for the socket to die "
until [ `netstat -an | grep :7779 | wc -l` -eq 0 ] ; do
sleep 1
echo -n "."
done
echo
echo The socket died. Restarting IPXTUND, damn it !
done
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
|
|
|