some services don't bind to socket during boot
Leander Janssen
leander at slaco.net
Fri May 21 08:17:56 UTC 2010
Hi All,
After upgrading my server from Karmic to Lucid a couple of services
don't bind to their specified ip socket anymore during the boot process.
The services that are affected are ssh, powerdns, iscsitarget, smb.
When checking the log files the services complain that the ip socket
they want to bind to does not exist.
What these services all have in common is that I've configured
a specific socket, instead of running the service on all interfaces and
ip addresses (0.0.0.0 or :::).
Another detail is that I'm using multiple ip addresses on the same
network interface. And that I'm using a bridge configuration to host
some kvm guests. I've attached a copy of my /etc/network/interfaces.
When I restart the services after boot they attach nicely to their
configured socket. But this is a bit problematic on a headless server
that is running in a remote datacenter.
I assume some sort of timing issue with upstart where the network
interface configration is not yet fully completed when other services
are being started.
Does anybody has an idea how I can further troubleshoot this issue?
Kind Regards,
Leander Janssen
-------------- next part --------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
iface eth0 inet6 manual
auto br0
iface br0 inet static
address 192.168.0.100
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
bridge_ports eth0
bridge_fd 0
bridge_hello 2
bridge_maxage 12
bridge_stp off
bridge_maxwait 0
up /sbin/ip addr add 192.168.0.101/24 brd + dev br0 label br0:0
iface br0 inet6 static
address 2001:6xx:6xx::100:0
netmask 64
gateway 2001:6xx:6xx::1
up /sbin/ip -6 addr add 2001:6xx:6xx::101:0/64 dev br0 preferred_lft 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20100521/81a7bf47/attachment.pgp>
More information about the ubuntu-server
mailing list