如何修复“未生成子进程”

时间:2019-06-18 08:24:05

标签: python supervisor

错误日志文件:

supervisor: couldn't exec /home/bot/discord_bot/discordBot.py: ENOENT                                        
supervisor: child process was not spawned

主管的conf文件:

[program:discordBot]                                                                                         
command=/home/bot/discord_bot/discordBot.py                                                                  
direcotry=/home/bot/discord_bot/                                                                             
user=bot                                                                                                     
autostart=true                                                                                               
autorestart=true                                                                                             
stderr_logfile=/var/log/discord.err.log                                                                      
stdout_logfile=/var/log/discord.out.log 

我已经在脚本中写了shebang #!/bin/python3.7

我写了chmod +x /home/bot/discord_bot/discordBot.py

0 个答案:

没有答案