나는 다음과 같은 문제가 있습니다Supervisord은 1 예를 생성합니다
나는 Gearman을 노동자로 PHP 스크립트를 실행하려면, 또는 5로 노동자들이 정확하게 할 수 있습니다. 이것은 내 supervisord.conf-추가이다 : 나는 그것을 시작하면
[program:gearman-test-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /path/to/gearman-jobs/worker.php
numprocs=5
directory=/path/to/gearman-jobs/
stdout_logfile=/var/log/gearman-job-server/supervisord.log
environment=GEARMAN_USER=gearman
autostart=true
autorestart=true
user=gearman
stopsignal=KILL
supervisord -n
(또는 데몬 모드에서)에만 메시지가 보일 것 대신 5의 1 예를 생성합니다 미세
[[email protected] gearman-jobs]# supervisord -n
2013-09-03 14:24:58,775 CRIT Supervisor running as root (no user in config file)
2013-09-03 14:24:58,789 INFO /var/tmp/supervisor.sock:Medusa (V1.1.1.1) started at Tue Sep 3 14:24:58 2013
Hostname: <unix domain socket>
Port:/var/tmp/supervisor.sock
2013-09-03 14:24:58,850 CRIT Running without any HTTP authentication checking
2013-09-03 14:24:58,850 INFO supervisord started with pid 8722
2013-09-03 14:24:58,853 INFO spawned: 'gearman-test-worker' with pid 8723
2013-09-03 14:24:59,858 INFO success: gearman-test-worker entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
및 단일 인스턴스를 생성하는 이유는 없습니다. 도울 수 있니?
그런데 5 개의 프로그램 하위 섹션을 만들고 numprocs 매개 변수를 제거하면 근로자가 올바르게 양산됩니다. –