How to get something similar to runlevels in Upstart?
paul
phsdv at tiscali.fr
Tue Oct 31 21:20:20 GMT 2006
Alex Smith wrote:
> Hi all,
>
> I'm doing a bit of extra evaluation of init systems for Frugalware
> Linux - previously I had chosen Runit as the init system which will be
> in Frugalware 0.6, but I have found some things in Runit that I really
> dislike: the fact that daemons have to be run in the foreground, the
> fact that a service will be restarted no matter what if it dies (no
> system of "if it's restart n times in the last x minutes, give up"),
> etc, etc.
>
> Anyway, one of my criteria in the evaluation is the ability to define
> runlevels. Several of our users use the runlevel system of sysvinit,
> and I don't want to lose the functionality. Basically, how would I get
> something similar to runlevels in Upstart. Any ideas?
Currently I myself am running upstart with the sysvinit emulation layer,
see http://upstart.ubuntu.com/download/examples-jobs-2.tar.gz
With this emulation you have the sysvinit runlevels.
However I am wondering why you would still need runlevels. I can imagine
that you are using runlevels to switch from fixed network to wireless.
Or change runlevels when switching from main power to battery power. But
with upstart (and udev, hald & dbus) you might think of a situation that
you do not need any runlevels any more. By having the right events
generated your computer will start and stop the daemons that are needed
to go to the new situation automatically.
Or do you have an other use of runlevels where this would not work?
Paul
>
> Thanks,
> Alex
More information about the Upstart-devel
mailing list