Skip to content

Instantly share code, notes, and snippets.

@zealws
Created October 29, 2017 07:49
Show Gist options
  • Save zealws/5176e25a60c4fd9e6fbfe36dec1dde0d to your computer and use it in GitHub Desktop.
Save zealws/5176e25a60c4fd9e6fbfe36dec1dde0d to your computer and use it in GitHub Desktop.
zeal@drcid ~ $ cat /etc/systemd/system/archon.service
[Unit]
Description=Container archon
ConditionPathExists=/var/lib/sandbox/archon
[Service]
ExecStart=/usr/bin/systemd-nspawn --boot \
--quiet \
--keep-unit \
--directory=/var/lib/sandbox/archon \
--machine archon \
--network-bridge=br0
KillMode=mixed
Type=notify
RestartForceExitStatus=133
SuccessExitStatus=133
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment