Upstart in "single mode" behaviour

Goffredo Baroncelli kreijack at gmail.com
Mon Mar 22 21:15:20 GMT 2010


Hi all,

I am looking to upstart. It seem to be a great work.
But there are some "corner" cases which aren't very clear to me.

With the traditional init program, there were the concept of runlevels: 

Cut & past from a slackware inittab:

    #   0 - halt (Do NOT set initdefault to this)
    #   1 - Single user mode
    #   2 - Multiuser, without NFS (The same as 3, if you do not have
    #       networking)
    #   3 - Full multiuser mode
    #   4 - unused
    #   5 - X11
    #   6 - reboot (Do NOT set initdefault to this)

But I don't have find anything similar to that in upstart. Yes I know that 
there is the rc.conf "script" for compatibility purpose, but what for the 
service which already switched to upstart ?

I performed a simple test: in my ubuntu 10.4 (beta1) I installed mysql, which 
had already switched to upstart. Then I ran in "single mode" my ubuntu box and 
I found that mysql were still running.

I don't know if I missed something, but to me mysql should _not_ run in single 
mode. Of course I can stop mysql by hand, but the point is that in general in 
"single" mode I want a system with the _minimum_ software ran.

Another thing that I was not able to find, is how set the "manual start-up" 
for an installed service.
For example, I may want to install mysql, but to run it only when I develop. 
When I don't want to develop with mysql, how I cant "disable" the autorun ?
(Suggestion: it should be sufficient that upstart don't exec a script if the 
'x' bit is not set).

I googled a bit and I searched through the FAQ but I wasn't able to find a 
response to my questions. Could someone help me to understand better the 
upstart behaviour ?

BR
Goffredo

-- 
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E  C054 BF04 F161 3DC5 0512



More information about the upstart-devel mailing list