How to stop some nova services from restarting when starting up

Asked by arturo lorenzo

I am running all services in one node and I am planning to split the nova services. How can I stop some of the nova services like nova-compute or nova-objectstore from restarting every time we reboot?
Should we uninstall them? apt-get remove nova-compute? or is there an easy way like in other Linux platforms? i.e. chkconfig
thanks

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Solved by:
arturo lorenzo
Solved:
Last query:
Last reply:
Revision history for this message
Dan Prince (dan-prince) said :
#1

All the nova PPA packages use upstart scripts:

 http://en.wikipedia.org/wiki/Upstart

You should be able to disable the services you want by editing the files in /etc/init and commenting out the 'start on' lines.

Tools like chkconfig are available on Ubuntu but I don't think they currently support disabling upstart scripts. Hope this helps.

Getting a tool like chkconfig that works with upstart would be great.

To see the state of init scripts you can also do a 'initctl list'.

Revision history for this message
arturo lorenzo (arturo-lorenzo) said :
#2

Dan, thanks so much, that helped and now I can split all my nova components.