すずけんメモ

技術メモです

supervisor

supervisorのcommandで$()を使いたいとき

今日初めてsupervisorの設定をした。まだあまり使い勝手がわかっていない。 supervisorでは環境変数の展開以外、マクロ的なことができない。bash -lcを使う。例えば以下のようにする。 [program:hoge] command=bash -lc '$(which hoge)/bin/fuga start'