# 現在動作しているserviceを確認 nomad status ID Type Priority Status Submit Date <job-id>... # job-idを指定してAllocation-idを取得 nomad job status <job-id> Allocations ID Node ID Task Group Version Desired Status Created Modified xxxx # alloc-idを指定して、詳細を取得 nomad alloc status <alloc-id> ... Task "<job-id>" is "running" Task Resources CPU Memory Disk IOPS Addresses 29/100 MHz 278 MiB/800 MiB 300 MiB 0 healthcheck: xxx.xxx.xxx.xxx:xxxxx ...
/bin/bash -c "test -f /path/to/healthcheck";echo $?