Solved problem, instead of root for amazon instance was used ubuntu user, so it was
/ubuntu/home/programfolder
Hope this helps someone else :)
题
Recently I was using digital ocean cloud instance and set up supervisor running like this:
[program:programname]
command=/root/programnamefolder/src/programnameexecutable
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
autorestart=true
But when I switched to same Ubuntu setup on amazon my supervisor is not able to find command Im guessing its because of the root settings etc, that are different for amazon instances Am I doing something wrong? Thanks
INFO spawnerr: can't find command
解决方案
Solved problem, instead of root for amazon instance was used ubuntu user, so it was
/ubuntu/home/programfolder
Hope this helps someone else :)