Hi,
My pythonpath.conf looks like ==>
[program:pythonpath]
environment = PYTHONPATH="/home/foo/workspace/bar"
command=python -u path.py
directory=/home/foo/test
stdout_logfile=/home/foo/test_python_output.txt
redirect_stderr=true
process_name=%(program_name)s_%(process_num)d
numprocs=2
autostart=true
autorestart=true

===
And my path.py looks like ==>
import os
f = open('path.txt', 'w')
path = os.environ['PYTHONPATH'].split(os.pathsep)
for item in path:
        f.write(item)
===
When I manually run "python path.py" it writes the pythonpath to path.txt
but when I do it with supervisorctl it gives some error==>
supervisor> restart pythonpath:pythonpath_1
pythonpath:pythonpath_1: ERROR (not running)
pythonpath:pythonpath_1: ERROR (abnormal termination)
===
What seems to be the problem? please help. I can't even see the log with
tail -f pythonpath.


*Hussain Tamboli*
Software Developer
[image: Screen-Magic Mobile Media pvt ltd.]


return 'hello world';
Designed with WiseStamp -
<http://r1.wisestamp.com/r/landing?u=a75d3bb40c4ca423&v=3.11.21&t=1358253331986&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>Get
yours<http://r1.wisestamp.com/r/landing?u=a75d3bb40c4ca423&v=3.11.21&t=1358253331986&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>
_______________________________________________
Supervisor-users mailing list
[email protected]
https://lists.supervisord.org/mailmain/listinfo/supervisor-users

Reply via email to