2014년 9월 11일 목요일

How to restart any service in Devstack

You can manually restart any service you like in devstack by following the below procedure:


1. In terminal type "screen -x stack" . Here stack is the screen name. you will be logged into the screens for all devstack services

2. Browse to your selected service by pressing Ctrl+a and then n (Next screen). Ctrl+a and then p (Previous screen)

3. When at the desired screen press Ctrl+c (This will stop the service)

4. Press the UP key and press enter.

The service will restart.

For an automated restart you can copy the command (from 4th step) for restarting service and make a script that can re-start all such services.

==========================================================================
Devstack does not run services. Its runs as screens. After successfully running stack.sh, if you want to restart any openstack service, get into screen using screen -r. For restarting nova network, go to nova network screen which is screen 9, using the command CTRL+A followed by 9. Then kill the nova network using CTRL+C and then restart it using "up" arrow and enter.

Note if you reboot your machine running devstack, you need to rerun stack.sh

댓글 없음:

댓글 쓰기