Hi

I would be greatfull if somebody would point me into the right direction with the following:

I took the loop_listener.py and loop_eventgen.py and tried to get them to work using the following supervisord.conf

[program:loopgen]
command=/usr/bin/python /var/www/scripts/loopgen.py 10
stdout_events_enabled=true
stopsignal=TERM
stopwaitsecs=1
user=root

[eventlistener:looplistener]
command=/usr/bin/python /var/www/scripts/loop_listener.py ; the program (relative uses PATH, can take args)
process_name=%(program_name)s ; process_name expr (default %(program_name)s)
numprocs=1                    ; number of processes copies to start (def 1)
events=PROCESS_COMMUNICATION_STDOUT
stdout_events_enabled=true   ; emit events on stdout writes (default false)

When running supervisorctl, I can see that both processes are running.
In the /var/log/supervisord I also get the following:

2013-05-03 22:14:55,442 INFO supervisord started with pid 13143
2013-05-03 22:14:56,479 INFO spawned: 'looplistener' with pid 13149
2013-05-03 22:14:56,551 INFO spawned: 'loopgen' with pid 13150
2013-05-03 22:14:57,585 INFO success: looplistener entered RUNNING state, process has stayed up for > than 1 seconds (startsecs) 2013-05-03 22:14:57,587 INFO success: loopgen entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2013-05-03 22:15:02,456 DEBG 'looplistener' stdout output:
READY

2013-05-03 22:15:02,469 DEBG looplistener: ACKNOWLEDGED -> READY

However for whatever reason, I see nothing in /tmp/report nor anything in the /tmp/loopgen-stdout--- file

Can somebody point me into the right direction or tell me what I am doing wrong?

Thanks in advance

Best regards

Filip
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailman/listinfo/supervisor-users

Reply via email to