github.com/smithx10/nomad@v0.9.1-rc1/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 task "sleeper" { 7 driver = "raw_exec" 8 config { 9 command = "/bin/bash" 10 args = ["-c", "echo $$ >> pid && sleep 999999"] 11 } 12 } 13 }