nadermx
nadermx

Reputation: 2776

Set ffmpeg path in supervsiorctl config file

I am having a issue where my code works fine when not under supervisor. But when under supervisor for some reason it is not finding the path to the ffmpeg dependency.

(env)root@www:/home/www/yout# which ffmpeg
/usr/bin/ffmpeg

Is there any way to set the path to ffmpeg to have it check this?

Here is my 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

Upvotes: 1

Views: 926

Answers (1)

user3770489
user3770489

Reputation: 186

ln /usr/bin/ffmpeg /home/www/env/bin/ffmpeg

will create a link in a folder already in the workers PATH, alternatively you could add /usr/bin to the workers PATH

eg

environment=PATH="/home/www/env/bin:/usr/bin"

Upvotes: 1

Related Questions