2013-04-23 28 views
6

supervisord.confはそうのようなプログラムの束が含まれていますディレクトリと同じコマンドを実行すると、期待どおりに動作します。supervisordはvirtualenvのフォルダでコマンドを見つけることができません

+1

をあなたはvenv /ビンへの絶対パスを提供することができますか?スーパーバイザーconfは 'directory'指令を提供しています。http://supervisord.org/configuration.html – dm03514

+2

はい、すでに' directory'オプションを設定しています。コマンドでフルパスを使用しようとしましたが、動作しています。奇妙な。 – john2x

+0

私は同じ動作を見ることができます - ディレクトリが設定されていても監督者が相対パスでコマンドを見つけることができず、このディレクトリからコマンドを手動で実行することができます。 –

答えて

6

ディレクトリが設定されていても、スーパバイザが相対パスでコマンドを検出できないことがあります。

ので使用:

[program:gtaskqueue_puller_1] 
directory=/root/scripts/gtaskqueue_puller 
command=/root/scripts/gtaskqueue_puller/venv/bin/gtaskqueue_puller "foo" 
autostart=true 
autorestart=true 

[program:gtaskqueue_puller_2] 
directory=/root/scripts/gtaskqueue_puller 
command=/root/scripts/gtaskqueue_puller/venv/bin/gtaskqueue_puller "bar" 
autostart=true 
autorestart=true 

いうより:

[program:gtaskqueue_puller_1] 
directory=/root/scripts/gtaskqueue_puller 
command=venv/bin/gtaskqueue_puller "foo" 
autostart=true 
autorestart=true 

[program:gtaskqueue_puller_2] 
directory=/root/scripts/gtaskqueue_puller 
command=venv/bin/gtaskqueue_puller "bar" 
autostart=true 
autorestart=true 
関連する問題