[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems with PPP on boot



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everyone

I have a server running Sarge that is connected to the internet through
PPPoE (I have a DSL line). I'm running several services, including DNS
(bind 8.4.6-1) and ntpd.

When machine boots, it seems that sometimes daemons will start before
pppd manages to establish a connection. For some services like Apache
this presents no problem. But Bind and NTP will not listen for
connections coming from the internet, because the ppp0 network device
didn't exist when they were starting. This is quite a problem, because
the machine is crippled after a reboot until I manually restart Bind and
NTP.

I have my PPP connection configured in /etc/network/interfaces like this:

auto ppp0
iface ppp0 inet ppp
        pre-up ifconfig eth1 up
        post-up waitfor ppp0 30
        post-down ifconfig eth1 down
        provider dsl-provider-2.4

"waitfor" is a script that waits for ppp0 device to become available.
This was one of my failed attempts to try to halt the boot process until
the internet connection is established.

I've also tried to add scripts to /etc/ppp/ip-up.d that would restart
Bind automatically after successful connection, but this only partially
worked (my explanation is that sometimes bind haven't finished starting
when the script in /etc/ppp/ip-up.d tries to restart it)

Has anyone else had a problem like this? How can I force the boot
process to stop until ppp0 becomes available? I'm also interested in why
 my "post-up" script in /etc/network/interfaces isn't working. It seems
to be working correctly when I bring the ppp0 interface up manually with
"ifup ppp0". Are these scripts started asynchronously on boot?

Thanks in advance
Tomaz Solc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFEoA29sAlAlRhL9q8RAt7aAJdgEu6Yw3jnlLCqvUwqXqZVqbH7AKCRddvo
xn54xVX3JWQoLPPNEuSndQ==
=2nRM
-----END PGP SIGNATURE-----



Reply to: