python - Set ffmpeg path in supervsiorctl config file -
i having issue code works fine when not under supervisor. when under supervisor reason not finding path ffmpeg dependency.
(env)root@www:/home/www/yout# ffmpeg /usr/bin/ffmpeg
is there way set path ffmpeg have check this?
here config file
[program:worker] directory=/home/www/yout environment=path="/home/www/env/bin" command=python worker.py high normal low process_name=%(program_name)s numprocs=1 autostart=true autorestart=true stopsignal=term user=root stopsignal=term
ln /usr/bin/ffmpeg /home/www/env/bin/ffmpeg
will create link in folder in workers path, alternatively add /usr/bin workers path
eg
environment=path="/home/www/env/bin:/usr/bin"
Comments
Post a Comment