| 1 | # Open Infrastructure: compute-tools |
| 2 | |
| 3 | [Unit] |
| 4 | Description="Container: %i" |
| 5 | Documentation=man:compute-tools |
| 6 | |
| 7 | [Service] |
| 8 | Type=simple |
| 9 | Environment=TERM=xterm-256color |
| 10 | ExecStart=/usr/bin/container start --name %i --nspawn --no-notification |
| 11 | ExecStartPost=/usr/bin/container start --name %i --start --no-notification |
| 12 | ExecStopPost=/usr/bin/container stop -n %i --clean --no-notification |
| 13 | KillMode=mixed |
| 14 | |
| 15 | [Install] |
| 16 | WantedBy=multi-user.target |