KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I really don't know how to get supervisor to work with environment variables. Below is a configuration snippet. [program:htNotificationService] priority=2 #autostart=true #autorestart=true directory=/home/ubuntu/workspace/htFrontEnd/heythat/htsite command = /usr/bin/python htNotificationService.py -service stdout_logfile=/var/log/heythat/htNotificationService.log redirect_stderr=true environment=PATH=/home/ubuntu/workspace/htFrontEnd/heythat stopsignal=QUIT I have tried the following: environment=PATH=/home/ubuntu/workspace/htFrontEnd/heythat environment=PYTHONPATH=$PYTHONPATH:/home/ubuntu/workspace/htFrontEnd/heythat environment=PATH=/home/ubuntu/workspace/htFrontEnd/heythat,PYTHONPATH=$PYTHONPATH:/home/ubuntu/workspace/htFrontEnd/heythat When I start supervisor I get htNotificationService: ERROR (abnormal termination) I can start from the shell by setting the python path, but not from supervisor. In the logs I get an error that says that an import can't be found. Well, that would be solved if supervisor would work. I even have the path in /etc/environments? Why will supervisor not work?
Tags (comma-separated)
Save Edits
Cancel