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

root@localhost: ~ # screen

if appear the following question, it indicate that the current user is nested in other user, ple exit this user.

stack@localhost:~$ screen
Cannot open your terminal '/dev/pts/1' - please check.

after enter a new screen, swtich to the right user, and run the command:

stack@localhost: ~$ /usr/bin/python /usr/local/bin/aodh-listener --config-file /etc/aodh/aodh.conf

exit the screen:

Ctrl+a, d

04-27 00:46