Ask Your Question

how to restart service

asked 2016-01-02 19:52:33 -0600

Atif gravatar image

after doing some changes in python code of neutron, how to reboot neutron to check that changes...

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted

answered 2016-01-03 15:41:39 -0600

Raghavachari gravatar image

If you are running devstack environment, you can do restart as below

  1. screen -r
  2. Move to "q-svc" screen. You can move with Ctrl + a + n (for next), Ctrl+a+p (for previous screen) or you can move to specific screen using number ex: Ctrl+a+7
  3. Press Ctrl + c to kill the screen
  4. Press up arrow and Press "Enter" key
edit flag offensive delete link more

answered 2016-01-03 10:01:18 -0600

Atif gravatar image

thanks for the reply.. where to run these command 1. /etc/init.d 2. cd devstack/ then use these commands.

edit flag offensive delete link more


If its a devstack environment, follow the instruction from @Radhavachari

Bipin gravatar imageBipin ( 2016-01-03 22:52:06 -0600 )edit

answered 2018-01-30 14:49:35 -0600

hthompson6 gravatar image

Things have changed. If you are still working with devstack and you are on ubuntu then it is:

sudo systemctl restart devstack@q-svc.service

Protip: systemctl has tab completion after you identify the service to restart. So, sudo systemctl restart devstack@ and tab complete from there.

edit flag offensive delete link more

answered 2016-01-02 21:47:45 -0600

Bipin gravatar image

updated 2016-01-02 21:48:10 -0600

service neutron-dhcp-agent restart
service neutron-ovs-cleanup restart
service neutron-metadata-agentrestart
service neutron-l3-agent restart
service neutron-plugin-openvswitch-agent restart
service neutron-vpn-agent restart
service neutron-server  restart
edit flag offensive delete link more

answered 2016-01-11 15:14:27 -0600

Sandeep gravatar image

let me tell complete steps:

(Note:Use vncserver or Xmanager)

  • First cd to folder devstack

  • You can find the file ./

  • Execute the same.

  • It will be executed and screen will be opened for access.

  • press ctrl + a + shift + "

  • Then it will be listing the running services

  • can move to service which needs to be stopped by scrolling towards it.

  • on the service which is needs to be stopped press enter

  • then press ctrl + c , it will stop the service

  • then press up arrow key to run the service again

  • service will be restarted successfully.

edit flag offensive delete link more


There is no in latest devstack I picked from git repo. In such situation, how to go about?

maruti gravatar imagemaruti ( 2017-01-20 07:07:17 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools


Asked: 2016-01-02 19:52:33 -0600

Seen: 3,556 times

Last updated: Jan 11 '16