Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

restarting pump (DHCP) automatically when network unavailable at boot time

From: Vincent Lefevre <vincent(at)vinc17.org>
Date: Thu Jun 28 2007 - 16:47:09 EDT


On a machine in a local network, I have in my /etc/network/interfaces file:

auto eth0
iface eth0 inet dhcp

But after a power outage, my machine sometimes restarts while the network isn't available yet. In this case, I can no longer ssh to it. And I can't reboot it remotely.

How can I make pump (the DHCP client I'm using) to try again periodically? I think I can write a script that tests if pump is running (with the "ps" command) and can run this script by cron. But is there a better way?

Note: When I'm in front of the machine, I still want to be able to use it when the network is not available (to do some local work, while waiting for the network to come back).

--

Vincent Lefèvre <vincent(at)vinc17.org> - Web: <http://www.vinc17.org/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

--

To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org Received on Thu Jun 28 17:09:48 2007

This archive was generated by hypermail 2.1.8 : Thu Jun 28 2007 - 17:10:04 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library