2014-10-21 5 views
1

서커스에서 서비스를 중지하는 방법을 아는 사람이 있습니까? 나는이 라인서커스에서 서버 서비스를 중지하려면 어떻게해야합니까?

cmd = /sbin/service mysqld restart 

하지만 circusctl에 감시자를 끄면 분명히 서비스가 여전히

[[email protected] bin]# service mysqld status 
mysqld (pid 7571) is running... 
[[email protected] bin]# circusctl 
circusctl 0.11.1 
circusd-stats: active 
hello: active 
httpd: active 
mysql: active 
plugin:myplugin: active 
webapp: stopped 
(circusctl) stop mysql 
ok 
(circusctl) 
[[email protected] bin]# service mysqld status 
mysqld (pid 8342) is running... 
[[email protected] bin]# 

여기 내 circus.ini 파일이 실행됩니다를 사용하여 서비스를 시작할 수 있어요. 그 mysql 과정을 악마로 당신이 보는 무엇

[circus] 
statsd = True 
httpd_host = 127.0.0.1 
httpd_port = 8080 
endpoint = tcp://127.0.0.1:5555 

[watcher:webapp] 
cmd = bin/chaussette --fd $(circus.sockets.web) 
numprocesses = 3 
use_sockets = True 

[watcher:hello] 
cmd = php /home/joseph/php/helloworld.php --fd $(circus.sockets.web) 
numprocess = 2 
use_sockets = True 
stdout_stream.filename = /home/joseph/test.log 

[watcher:mysql] 
cmd = /sbin/service mysqld restart 
numprocess = 1 
stdout_stream.filename = /tmp/circus.log 

[watcher:httpd] 
cmd = /sbin/service httpd $(circus.env.shell) 
numprocess = 1 
stdout_stream.filename = /tmp/circus.log 

[socket:web] 
host = 127.0.0.1 
port = 8888 
+0

당신이 종료 circusctl 시도가 실행하는 라인? 이 (http://aameer.github.io/circus-as-an-alternative-to-supervisor/) 도움이 될 수 있습니다. – Aameer

답변

0

/sbin/service의 결과입니다.

그런 다음 프로세스를 관리 circus을 원하는 경우에 당신이 circus에을 undaemonised 과정을 처리해야합니다.

변경 실제 MySQL의 과정 ::

cmd = /sbin/service mysqld restart 
관련 문제