Upstart problem - apache, ssh daemon not running

Carsten Agger agger at modspil.dk
Fri Apr 2 16:42:15 UTC 2010


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).

ยด> So, going back to the problem: upstart 0.6.3-10 has this in
> /etc/init/rc-sysinit.conf:
> 
>   start on filesystem
> 
> while 0.6.3-11 has this:
> 
>   start on filesystem and net-device-up IFACE=lo
> 
> which means that even if your system is somehow bringing up the loopback
> interface, it's not telling upstart about it.  The script that's
> supposed to tell upstart about network devices coming up is
> /etc/network/if-up.d/upstart.
> 
> 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


BUT, I'll try editing the file by hand and see if it solves the problem






More information about the ubuntu-users mailing list