Boot profile

Mathieu Bridon (bochecha) bochecha at fedoraproject.org
Wed Feb 4 12:46:36 UTC 2009


> I have a laptop that I use for work but also when I travel. I travel by car,
> train or bus.
> The services I need for work are not necessarily needed when I am in the
> train and therefore I though that it would be cool to be able to define
> profiles.
> You could thus have a profile
> * work that would start the list of services you defined (httpd, mysqld,
> networkManager...)
> * train that would start another list of services that you defined (in this
> case I would not like to start httpd, mysqld nor NetworkManager for example)
>
> Thus in the train my laptop would not always look for a network or wait for
> a bluetooth connection and I assume it make my laptop boot faster and would
> save the battery a bit.
>
> Being able to define profiles of the services that start in advance (I know
> there is the interactive boot option) would IMHO be cool, however I don't
> know if it's feasible or if you like it.

That can be done by creating several runlevels, each one having its
set of services enabled with chkconfig. Then in the Grub menu, you can
add one entry per "profile" (i.e. passing the runlevel as a parameter
to the kernel).

Not sure how it can work with Upstart though, and if there is a
maximum number of runlevels that can be created.


----------

Mathieu Bridon (bochecha)
French Fedora Ambassador

----------
"They who can give up essential liberty to obtain a little temporary
safety, deserve neither liberty nor safety." ~Benjamin Franklin




More information about the devel mailing list