Last active
September 7, 2015 15:09
-
-
Save jiphex/65c6961852a0d349e80e to your computer and use it in GitHub Desktop.
Systemd unit for lxc (e.g systemctl start lxc@containername)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=LXC %i | |
Requires=lxc.service | |
[Service] | |
ExecStart=/usr/bin/lxc-start --name=%i | |
ExecStop=/usr/bin/lxc-stop --name=%i | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment