in a devstack Openstack env, how to start a service, such as aodh-listener
Posted qmzp
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了in a devstack Openstack env, how to start a service, such as aodh-listener相关的知识,希望对你有一定的参考价值。
in terminal, when start the service, the service will run in this terminal, and if kill this terminal or command, this service will be killed.
look up the other service, each service is running in a single pts. So should start a new pts and start 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 that the current user is nested in other user, ple exit this user.
[email protected]:~$ screen
Cannot open your terminal ‘/dev/pts/1‘ - please check.
after enter a new screen, 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的主要内容,如果未能解决你的问题,请参考以下文章
openstack(liberty): devstack之screen
部署 DevStack - 每天5分钟玩转 OpenStack(17)