Skip to content
20 linesCodeBlameRaw
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]
7Description=g1t sandbox
8After=network-online.target
9Wants=network-online.target
10
11[Service]
12ExecStart=/usr/local/bin/g1t-runner sandbox guest run --seed /dev/vdc --state-disk /dev/vdb --console /dev/hvc0
13KillMode=mixed
14KillSignal=SIGTERM
15TimeoutStopSec=infinity
16Restart=on-failure
17RestartSec=5
18
19[Install]
20WantedBy=multi-user.target