Disable all OpenStack services.

asked 2016-01-26 17:38:09 -0600

tab87vn gravatar image

updated 2016-01-27 02:11:42 -0600


For some reasons, I want to disable all OpenStack services on all participating node (Controller, Network, Compute). Technically, I want to prevent all the related services from starting up when the system boots up, but leave the door to enable these again the other day.

I could perhaps simply write a bash script that does something like 'service nova-compute stop' and so on, but is there any way better than stopping the services after letting them start up?

Thank you!

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2016-01-27 08:20:23 -0600

jckreddy gravatar image

updated 2016-01-27 10:37:03 -0600

your can user the below generic command to disable any service which will stop the service while booting once you enable you can restart the service again

To Disable

service <service-name> disable

To Enable

service <service-name> enable

To Start

service <service-name> start

To Stop

service <service-name> stop
edit flag offensive delete link more

answered 2016-01-26 21:06:28 -0600

xiangfei-ma gravatar image

Use 'systemctl disable nova-compute' to prevent the service starting up after booted.
Use 'systemctl enable nova-compute' to enable the service again another day.

edit flag offensive delete link more


Thank you. I suppose that applies for RedHat only? I'm using Ubuntu, what's the equivalent command?

tab87vn gravatar imagetab87vn ( 2016-01-27 02:01:35 -0600 )edit

answered 2016-01-27 02:12:07 -0600


the easiest way is using openstack-service command provided by openstack-utils package.

An example: This command will disable all openstack services from boot

openstack-service disable

This will disable all swift services from boot

openstack-service disable swift

This will stop all services

openstack-service stop

This one will stop all swift services

openstack-service stop swift


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-01-26 17:38:09 -0600

Seen: 2,317 times

Last updated: Jan 27 '16