In a devstack Openstack env, how to start a service, such as Aodh-listener

Source: Internet
Author: User

In terminal, when start the service, the service would run in this terminal, and if kill this terminal or command, this Ser Vice'll be killed.

Look up the other service, with each service being running in a single PTS. So should start a new PTS and start the This service.

# ps-ef| grep Aodh

Root 7373 11359 0 03:20 pts/1 00:00:00 grep--color=auto Aodh
Root 9403 9196 0 May11 pts/35 00:00:00 sudo tail-f/var/log/apache2/aodh.log
Root 9408 9403 0 May11 pts/35 00:00:00 tail-f/var/log/apache2/aodh.log
Root 9675 9471 0 May11 pts/36 00:00:00 sudo tail-f/var/log/apache2/aodh_access.log
Root 9680 9675 0 May11 pts/36 00:02:18 tail-f/var/log/apache2/aodh_access.log
Stack 10276 10068 0 May11 pts/37 00:01:55/usr/bin/python/usr/local/bin/aodh-notifier--config-file/etc/aodh/aodh.conf
Stack 26200 8818 0 May15? 00:06:27 (WSGI:AODH-API)-K start
Stack 26201 8818 0 May15? 00:06:43 (WSGI:AODH-API)-K start

Solution:

Start a new screen

[Email protected]: ~ # screen

If appear the following question, it indicate the current user was nested in other user, ple exit this user.

[Email protected]:~$ screen
Cannot open your terminal '/DEV/PTS/1 '-please check.

After enter a new screens, Swtich to the right user, and run the command:

[Email protected]: ~$/usr/bin/python/usr/local/bin/aodh-listener--config-file/etc/aodh/aodh.conf

Exit the screen:

CTRL + A, D

In a devstack Openstack env, how to start a service, such as Aodh-listener

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.