6
私supervisord.conf
はそうのようなプログラムの束が含まれていますディレクトリと同じコマンドを実行すると、期待どおりに動作します。supervisordはvirtualenvのフォルダでコマンドを見つけることができません
私supervisord.conf
はそうのようなプログラムの束が含まれていますディレクトリと同じコマンドを実行すると、期待どおりに動作します。supervisordはvirtualenvのフォルダでコマンドを見つけることができません
ディレクトリが設定されていても、スーパバイザが相対パスでコマンドを検出できないことがあります。
ので使用:
[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
をあなたはvenv /ビンへの絶対パスを提供することができますか?スーパーバイザーconfは 'directory'指令を提供しています。http://supervisord.org/configuration.html – dm03514
はい、すでに' directory'オプションを設定しています。コマンドでフルパスを使用しようとしましたが、動作しています。奇妙な。 – john2x
私は同じ動作を見ることができます - ディレクトリが設定されていても監督者が相対パスでコマンドを見つけることができず、このディレクトリからコマンドを手動で実行することができます。 –