LoginSignup
0
0

More than 5 years have passed since last update.

Supervisor の conf で HOSTNAME を当てたい

Posted at

Supervisor の conf で HOSTNAME を当てたい

下記のような設定ファイルに $HOSTNAME を渡したいとときは $HOSTNAME を渡すのではなく、 %(host_node_name)s で渡します。 ちなみに %(HOSTNAME)s はダメでした。

sample.ini
[program:sample]
command=/bin/sample --env HOSTNAME=%(host_node_name)s

詳しくはこちら http://supervisord.org/configuration.html#program-x-section-values

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0