RE: How to gracefully handle unavailable DHCP server
Hiya,
Try this little bash script:
#!/bin/sh
IFACE=eth0
/sbin/pump -i $IFACE -s 2> /dev/null 1> /dev/null
if [ $? -eq 1 ]; then
/sbin/pump -i $IFACE
fi
Put it into your cron, say every 5 mins or so...
Hope this helps.
David.
-----Original Message-----
From: Danie Roux [mailto:droux@tuks.co.za]
Sent: 11 October 2001 12:41
To: Debian user
Subject: How to gracefully handle unavailable DHCP server
Our DHCP server is notoriously unstable. If pump can't renew the lease,
it then quits. Which means I have to go up 5 stories later to ifup eth0.
What is the easiest/best way to let pump perodically try again?
--
Danie Roux *shuffle* Adore Unix
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listmaster@lists.debian.org
**************************************************************************************************
The views expressed in this E-mail are those of the author and not necessarily those of Knowledge Management Software.
If you are not the intended recipient or the person responsible for delivering to the intended recipient, please be advised that you have received this E-mail in error and that any use is strictly prohibited.
If you have received this E-mail in error, please notify us by forwarding this E-mail to the following address:
mailadmin@kmsoftware.com
**************************************************************************************************
Reply to: