| 1 | # The sandbox in a VM on macOS or Linux (deploy/sandbox/Dockerfile, `vm`): |
| 2 | # reads its settings from the seed disk the launcher wrote (/dev/vdc), |
| 3 | # keeps the runner's registration on its own disk (/dev/vdb), and says how |
| 4 | # it is on the console. Stopping it (the VM shutting down) drains the runner |
| 5 | # first when the launcher asked for that, so it may take as long as a job. |
| 6 | [Unit] |
| 7 | Description=g1t sandbox |
| 8 | After=network-online.target |
| 9 | Wants=network-online.target |
| 10 | |
| 11 | [Service] |
| 12 | ExecStart=/usr/local/bin/g1t-runner sandbox guest run --seed /dev/vdc --state-disk /dev/vdb --console /dev/hvc0 |
| 13 | KillMode=mixed |
| 14 | KillSignal=SIGTERM |
| 15 | TimeoutStopSec=infinity |
| 16 | Restart=on-failure |
| 17 | RestartSec=5 |
| 18 | |
| 19 | [Install] |
| 20 | WantedBy=multi-user.target |