0
IPアドレスを引数としてサーバーを実行したいとします。supervisordでサブコマンドを実行しています
./server-no-ssl 80 "$(curl http://169.254.169.254/latest/meta-data/public-hostname)"
私はcurlコマンドが代わりにカールからのIPアドレスの引数として取られるコンフィグ
[program:allsparkrt]
command=/home/ubuntu/server-no-ssl 80 "$(curl http://169.254.169.254/latest/meta-data/public-hostname)"
directory=/home/ubuntu/
autostart=true
autorestart=true
startretries=3
stderr_logfile=/var/log/allspark_server.err.log
stdout_logfile=/var/log/allspark_server.out.log
stopsignal=INT
stopwaitsecs=60
でスーパーバイザーを使用しています。 ヘルプをいただければ幸いです。