Jackie Lin Tux's lil' helper
Joined: 31 May 2017 Posts: 115
|
Posted: Thu Jan 18, 2018 1:27 pm Post subject: supervisor failed to start tornado server |
|
|
Hi,there.
I installed tornado web server using pip in normal user jerry's home directory. I can start the server as a normal user jerry with command "python /home/jerry/artoftime/main.py".
but it failed to start under supervisor's supervision. the error log prompts that it can not find tornado.
the supervisord.conf file is below:
Code: |
[program:artoftime]
command=python /home/jerry/artoftime/main.py
directory=/home/jerry
user=jerry
autorestart=true
stdout_logfile=/home/jerry/log/artoftime.log
stderr_logfile=/home/jerry/log/error.log
|
the other part is the same with output produced by echo_supervisord_conf.
I have set user=jerry. why did python fail to find tornado. tornado is just in jerry's home directory.
I have no idea how to fix it. Could anyone help me? Thanks a lot! _________________ peace, focus. |
|