how do I *not* start something by default?

Evan Huus eapache at gmail.com
Wed Nov 17 00:19:09 GMT 2010


The easiest way is to edit it's upstart file (/etc/init/tgt.conf or
similar), and add a fake event to it's 'start on' line.

So if it was previously
> start on started dbus
Turn it into
> start on (started dbus and myfakeevent)

Since myfakeevent is never emitted by the system, the job will never
start automatically, however you'll still be able to start it manually
with
> sudo start tgt

Hope this helps,
Evan

On Tue, Nov 16, 2010 at 6:36 PM, Tomasz Chmielewski <mangoo at wpkg.org> wrote:
> Let's say I installed a daemon which is called tgt, from tgt package
> (apt-get install tgt).
>
> Now, it starts automatically when system starts, but I'd rather start it
> manually.
>
> How do I do it with upstart?
>
> With init.d, I would just do something like:
>
>        mv /etc/rc2.d/S18tgt /etc/rc2.d/K18tgt
>
> (or, use update-rc.d).
>
>
> If a daemon is now started by upstart, how do I make it *not* start
> automatically on system bootup?
>
>
> --
> Tomasz Chmielewski
> http://wpkg.org
>
> --
> upstart-devel mailing list
> upstart-devel at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/upstart-devel
>



More information about the upstart-devel mailing list