Upstart problem - apache, ssh daemon not running
Carsten Agger
agger at modspil.dk
Fri Apr 2 17:04:59 UTC 2010
Carsten Agger wrote:
>>
>> 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
>
>
>
This actually worked! Now, I wonder how my /etc/network/interfaces got
to be empty apart from the two comment lines, in the first place.
Some previous version of the boot configuration which later hasn't been
upgraded properly, perhaps?
But, now at least it works with the most recent upstart. Thanks,
everyone :-)
More information about the ubuntu-users
mailing list