Upstart problem - apache, ssh daemon not running

Marius Gedminas marius at pov.lt
Sun Apr 4 16:54:59 UTC 2010


On Fri, Apr 02, 2010 at 06:42:15PM +0200, Carsten Agger wrote:
> Marius Gedminas wrote:
> > 
> >> Mine only contains these two lines:
> >>
> >> # Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
> >> # /usr/share/doc/ifupdown/examples for more information.
> >> ~
> > 
> > loopback is missing; that's a plausible explanation for why you don't
> > have ssh/apache/cups.
> > 
> >> I *think* (but may be wrong) that it shouldn't matter because loopback 
> >> should be configured by default (anyway, loopback works - only the 
> >> services don't get started).
> > 
> > Interesting.  Do you have any idea what might be bringing it up?
> > Because I don't (and I don't like mysteries, in general).
> > 
> >   grep -w lo /etc/init.d/* /etc/init/*
> 
> This yields:
> 
> agger at lakshmi:~/Work$ grep -w lo /etc/init.d/* /etc/init/*
> 
> /etc/init.d/networking:	    if ifdown -a --exclude=lo; then
> /etc/init.d/networking:	    if ifdown -a --exclude=lo >/dev/null 
> 2>/dev/null; then
> /etc/init.d/networking:	ifdown -a --exclude=lo || true
> /etc/init.d/networking:	if ifup -a --exclude=lo; then
> /etc/init/ufw.conf:start on net-device-added INTERFACE=lo
> a
> 
> I think this MAY mean that the line in ufw.conf is bringing up the 
> loopback interface (not an expert here).

Actually, it's the other way around: ufw is started when the loopback
comes up.

(On normal systems loopback is brought up by ifup -a from
/etc/init/networking.conf)

> > I would suggest that if you added the loopback lines to your
> > /etc/network/interfaces, your problem would go away.
> > 
> > sudo dpkg-reconfigure ifupdown
> > 
> > should do that for you.
> >
> Thanks!
> 
> This command gives, however:
> 
> agger at lakshmi:~/Work$ sudo dpkg-reconfigure ifupdown
> [sudo] password for agger:
> ifupdown.postinst: Warning: No 'iface lo' definition found in 
> /etc/network/interfaces
> ifupdown.postinst: Warning: No 'auto lo' statement found in 
> /etc/network/interfaces

Interesting, it should also say "adding it for you" after each of those
warnings, if I'm reading the source right (/var/lib/dpkg/info/ifupdown.postinst):

    if ! grep -q "^[[:space:]]*iface[[:space:]]\+lo[[:space:]]\+inet[[:space:]]\+loopback\>" /etc/network/interfaces ; then
      report_warn "No 'iface lo' definition found in /etc/network/interfaces"
      report_warn " adding it for you"
      if ! grep -q "^[[:space:]]*auto[[:space:]].*\<lo\>" /etc/network/interfaces ; then
        # both are missing? add the whole block
        report_warn "No 'auto lo' statement found in /etc/network/interfaces"
        report_warn " adding it for you"
cat >> /etc/network/interfaces <<EOF

# The loopback network interface
auto lo
iface lo inet loopback
EOF

Marius Gedminas
-- 
As of 2.91, these bugs have all been fixed.  We look forward to new ones, well,
not exactly...
                -- libstdc++-v3 FAQ
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20100404/4735b103/attachment.sig>


More information about the ubuntu-users mailing list