github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/e2e/clientstate/sleeper.nomad (about) 1 # Sleeper is a fake service that outputs its pid to a file named `pid` to 2 # assert duplicate tasks are never started. 3 4 job "sleeper" { 5 datacenters = ["dc1"] 6 7 constraint { 8 attribute = "${attr.kernel.name}" 9 value = "linux" 10 } 11 12 task "sleeper" { 13 driver = "raw_exec" 14 15 config { 16 command = "/bin/bash" 17 args = ["-c", "echo $$ >> pid && sleep 999999"] 18 } 19 } 20 }