I'm using the very useful Supervisor. But I'd like to prevent it from running when I start ubuntu: is it possible ?
2 Answers
If it's a service (daemon) install rcconf:
sudo apt-get install rcconf
And then, run it and disable supervisor with it (uncheck its corresponding box, and accept):
sudo rcconf
Whenever you want to run it manually you can use the command:
sudo service supervidor start
sudo service supervidor stop
- 8,354
There's probably a file for it in /etc/init/, probably called supervisord.conf which instructs upstart to start supervisord on boot.
The file will have the start conditions some close to the top, looking somewhat like this (taken from lightdm's init file):
start on ((filesystem
and runlevel [!06]
and started dbus
and plymouth-ready)
or runlevel PREVLEVEL=S)
Update: As mentioned in the comments, the usual way of disabling an upstart service is creating an override file for that service by issuing the following command:
echo 'manual' | sudo tee /etc/init/supervisord.override
You could also comment those lines using # and supervisord won't start automatically, but changes like that might be overwritten by a future update.
If there is no such file, supervisor might be using old, init-style configs in /etc/init.d/. If that's the case, you can disable it by running
update-rc.d -f supervisord remove
- 2,880
-
3Correct, although the "standard" way to locally disable services at startup for upstart is
sudo bash -c "echo 'manual' >> /etc/init/supervisord.override"(so that it will not be re-enabled by updates or similar events). – Rmano Nov 18 '13 at 15:14 -
1You're correct, must have slipped my mind. I'll update my post accordingly. – drc Nov 18 '13 at 15:16
rcconfis a great tool, thanks a lot ! – Anto Nov 18 '13 at 14:53rcconfwork only with SistemV-init style files? Probably in this casesupervisoris in that category (otherwise it wouldn't work), but take into account that most of Ubuntu "services" are managed by upstart (see @drc's answer) – Rmano Nov 18 '13 at 15:18