문제

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 :)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top