After fault-finding for a couple of days I came across this thread, and 
realised I was experiencing the same problem. My system was upgraded from 
Koala, but I'm sure the problem did not occur until some time after the upgrade 
(ie after an update). I've done a "quick'n'dirty" fix that fixes it by having 
upstart run a "telinit 2" 90 seconds after booting (details below) - so it 
appears that init never sees the entry into run level 2 (and its not in utmp?) 
and so doesnt fire off the relevant jobs. In my case, atd (from upstart) and 
cups (from System-V rc2.d) were failing (as well as others). Here's some output 
which shows what's happening:
$ runlevel
unknown
sfra...@sierra:~$ od -x /var/run/utmp
0000000 0007 0000 033a 0000 7474 3779 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
0000040 0000 0000 0000 0000 303a 0000 6673 6172
0000060 6573 0072 0000 0000 0000 0000 0000 0000
0000100 0000 0000 0000 0000 0000 0000 303a 0000
0000120 0000 0000 0000 0000 0000 0000 0000 0000
*
0000520 0000 0000 55c8 4bf7 7fd2 0008 0000 0000
0000540 0000 0000 0000 0000 0000 0000 0000 0000
*
0000600 0007 0000 0568 0000 7470 2f73 0030 0000
0000620 0000 0000 0000 0000 0000 0000 0000 0000
0000640 0000 0000 0000 0000 302f 0000 6673 6172
0000660 6573 0072 0000 0000 0000 0000 0000 0000
0000700 0000 0000 0000 0000 0000 0000 303a 302e
0000720 0000 0000 0000 0000 0000 0000 0000 0000
*
0001320 0000 0000 55d5 4bf7 4f89 0005 0000 0000
0001340 0000 0000 0000 0000 0000 0000 0000 0000
*
0001400
sfra...@sierra:~$ ps ax|egrep "atd|cups"
 1415 pts/0    S+     0:00 egrep atd|cups
sfra...@sierra:~$ initctl list|egrep "atd|rc"
rc stop/waiting
atd stop/waiting


.....wait the 90 seconds............then re-check

$ runlevel
N 2
sfra...@sierra:~$ od -x /var/run/utmp
0000000 0007 0000 033a 0000 7474 3779 0000 0000
0000020 0000 0000 0000 0000 0000 0000 0000 0000
0000040 0000 0000 0000 0000 303a 0000 6673 6172
0000060 6573 0072 0000 0000 0000 0000 0000 0000
0000100 0000 0000 0000 0000 0000 0000 303a 0000
0000120 0000 0000 0000 0000 0000 0000 0000 0000
*
0000520 0000 0000 55c8 4bf7 7fd2 0008 0000 0000
0000540 0000 0000 0000 0000 0000 0000 0000 0000
*
0000600 0007 0000 0568 0000 7470 2f73 0030 0000
0000620 0000 0000 0000 0000 0000 0000 0000 0000
0000640 0000 0000 0000 0000 302f 0000 6673 6172
0000660 6573 0072 0000 0000 0000 0000 0000 0000
0000700 0000 0000 0000 0000 0000 0000 303a 302e
0000720 0000 0000 0000 0000 0000 0000 0000 0000
*
0001320 0000 0000 55d5 4bf7 4f89 0005 0000 0000
0001340 0000 0000 0000 0000 0000 0000 0000 0000
*
0001400 0002 0000 0000 0000 007e 0000 0000 0000
0001420 0000 0000 0000 0000 0000 0000 0000 0000
0001440 0000 0000 0000 0000 7e7e 0000 6572 6f62
0001460 746f 0000 0000 0000 0000 0000 0000 0000
0001500 0000 0000 0000 0000 0000 0000 2e32 2e36
0001520 3233 322d 2d32 6567 656e 6972 0063 0000
0001540 0000 0000 0000 0000 0000 0000 0000 0000
*
0002120 0000 0000 5602 4bf7 4dd9 0003 0000 0000
0002140 0000 0000 0000 0000 0000 0000 0000 0000
*
0002200 0001 0000 0032 0000 007e 0000 0000 0000
0002220 0000 0000 0000 0000 0000 0000 0000 0000
0002240 0000 0000 0000 0000 7e7e 0000 7572 6c6e
0002260 7665 6c65 0000 0000 0000 0000 0000 0000
0002300 0000 0000 0000 0000 0000 0000 2e32 2e36
0002320 3233 322d 2d32 6567 656e 6972 0063 0000
0002340 0000 0000 0000 0000 0000 0000 0000 0000
*
0002720 0000 0000 5602 4bf7 7669 0003 0000 0000
0002740 0000 0000 0000 0000 0000 0000 0000 0000
*
0003000 0006 0000 058f 0000 7474 3479 0000 0000
0003020 0000 0000 0000 0000 0000 0000 0000 0000
0003040 0000 0000 0000 0000 0034 0000 4f4c 4947
0003060 004e 0000 0000 0000 0000 0000 0000 0000
0003100 0000 0000 0000 0000 0000 0000 0000 0000
*
0003520 0000 0000 5602 4bf7 0000 0000 0000 0000
0003540 0000 0000 0000 0000 0000 0000 0000 0000
*
0003600 0006 0000 0594 0000 7474 3579 0000 0000
0003620 0000 0000 0000 0000 0000 0000 0000 0000
0003640 0000 0000 0000 0000 0035 0000 4f4c 4947
0003660 004e 0000 0000 0000 0000 0000 0000 0000
0003700 0000 0000 0000 0000 0000 0000 0000 0000
*
0004320 0000 0000 5602 4bf7 0000 0000 0000 0000
0004340 0000 0000 0000 0000 0000 0000 0000 0000
*
0004400 0006 0000 059c 0000 7474 3279 0000 0000
0004420 0000 0000 0000 0000 0000 0000 0000 0000
0004440 0000 0000 0000 0000 0032 0000 4f4c 4947
0004460 004e 0000 0000 0000 0000 0000 0000 0000
0004500 0000 0000 0000 0000 0000 0000 0000 0000
*
0005120 0000 0000 5602 4bf7 0000 0000 0000 0000
0005140 0000 0000 0000 0000 0000 0000 0000 0000
*
0005200 0006 0000 059e 0000 7474 3379 0000 0000
0005220 0000 0000 0000 0000 0000 0000 0000 0000
0005240 0000 0000 0000 0000 0033 0000 4f4c 4947
0005260 004e 0000 0000 0000 0000 0000 0000 0000
0005300 0000 0000 0000 0000 0000 0000 0000 0000
*
0005720 0000 0000 5602 4bf7 0000 0000 0000 0000
0005740 0000 0000 0000 0000 0000 0000 0000 0000
*
0006000 0006 0000 05a2 0000 7474 3679 0000 0000
0006020 0000 0000 0000 0000 0000 0000 0000 0000
0006040 0000 0000 0000 0000 0036 0000 4f4c 4947
0006060 004e 0000 0000 0000 0000 0000 0000 0000
0006100 0000 0000 0000 0000 0000 0000 0000 0000
*
0006520 0000 0000 5602 4bf7 0000 0000 0000 0000
0006540 0000 0000 0000 0000 0000 0000 0000 0000
*
0006600 0006 0000 08e7 0000 7474 3179 0000 0000
0006620 0000 0000 0000 0000 0000 0000 0000 0000
0006640 0000 0000 0000 0000 0031 0000 4f4c 4947
0006660 004e 0000 0000 0000 0000 0000 0000 0000
0006700 0000 0000 0000 0000 0000 0000 0000 0000
*
0007320 0000 0000 5609 4bf7 0000 0000 0000 0000
0007340 0000 0000 0000 0000 0000 0000 0000 0000
*
0007400
sfra...@sierra:~$ ps ax|egrep "atd|cups"
 1447 ?        Ss     0:00 atd
 2191 ?        Ss     0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
 2336 pts/0    S+     0:00 egrep atd|cups
sfra...@sierra:~$ initctl list|egrep "atd|rc"
rc stop/waiting
atd start/running, process 1447

Here's my fix, which seems to help:

$ cat /etc/init/steve.conf 
start on startup
task
script
nohup /root/try.sh &
exit 0
end script

$ cat /root/try.sh 
#! /bin/sh
sleep 90
touch /tmp/try.sh.ran    # <==== just for checking
telinit 2

HTH
Steve

-- 
Some services not started on boot, runlevel returns "unknown"
https://bugs.launchpad.net/bugs/543506
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to