is it possible to somehow use the local hostname in a supervisord startup script? I need it to pass the jmx host to a java-Program. Example:
command=HOSTNAME=foo.bar /usr/local/rvm/bin/jruby-1.7.1 script/trinidad.rb --threadsafe -f config/trinidad_user_production.rb
I see no easy option so far.
Best,
Tobias
For using hostname in the config file:
%(host_node_name)s
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With