Ask Your Question
0

how to restart service

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

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
2

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

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
0

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

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

Comments

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

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

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

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
0

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

Bipin gravatar image

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

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
0

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

Sandeep gravatar image

let me tell complete steps:

(Note:Use vncserver or Xmanager)

  • First cd to folder devstack

  • You can find the file ./rejoin_stack.sh

  • 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

Comments

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

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

Seen: 2,545 times

Last updated: Jan 11 '16