Generate systemd units for lxc containers

Now that lxc containers are so easy, how about adding systemd unit files that will start/stop them and autostart them at boot time?

This is a simple script to generate systemd unit for for a container. It appends a _container prefix to the name of the container e.g. the container named webproxy is managed by service file webproxy_container.service.

You can add and remove unit files for any container with this script.

Enjoy.

 

Leave a Reply

Your email address will not be published. Required fields are marked *