Custom runlevel for specific services

Abel Ureta-Vidal abel at eaglegenomics.com
Thu Jul 8 16:59:37 BST 2010


Hi,

I've been playing around with the latest Ubuntu 10.04 LTS, EC2 32bits  
image from alestic.com,
and updating a custom image we have in house, originally based on  
Ubuntu 8.04 LTS.
10.04 is a great release by the way.

I believe I'm starting to get familiar with the upstart process but  
have a little question about customizing
runlevel for specific applications. My machine run on runlevel 4 by  
default, not sure why it does
not use runlevel 3 (maybe because it is a virtual instance), but this  
is irrelevant for my question.

I have installed mysql server on this machine, and by default as  
defined by the /etc/init/mysql.conf
the mysqld will start at runlevel 2,3,4 and 5, as ordered by the line

stop on runlevel [016]

However I don't want the mysqld to start automatically but just as a  
user operator asks for it. So the only
way I could find to get this behaviour was to change the above line to

stop on runlevel [0146]

Is there another way to do this in a more generic fashion? I'm unsure  
the old /etc/inittab could help here.
But even if it is does, I understand this is still there for backward  
compatibility. So I'd rather try to use the
next implemented solution if there.

Thanks for your help,

Abel
__
Abel Ureta-Vidal
Eagle Genomics Ltd | E: abel at eaglegenomics.com
http://www.eaglegenomics.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/upstart-devel/attachments/20100708/0c03de07/attachment.htm 


More information about the upstart-devel mailing list