FS#43297 - [lxc] systemd script for lxc-autostart
Attached to Project:
Community Packages
Opened by Martin L. (voby) - Thursday, 01 January 2015, 15:55 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 07 January 2015, 20:58 GMT
Opened by Martin L. (voby) - Thursday, 01 January 2015, 15:55 GMT
Last edited by Sergej Pupykin (sergej) - Wednesday, 07 January 2015, 20:58 GMT
|
Details
Description:
Is it possible to integrate a second systemd script to the lxc package for autostart? lxc offers the possibility to start containers using lxc-autostart command in a particular order using the lxc.start.* parameters in the config files. The current script lxc@.service lacks this possibility. Proposal: I created following script on my host. Name: lxc-auto.service [Unit] Description=Autostart LXC Container After=network.target [Service] Type=forking ExecStart=/usr/bin/lxc-autostart ExecStop=/usr/bin/lxc-autostart -s Delegate=true [Install] WantedBy=multi-user.target Additional info: * package version 1.0.7-2 |
This task depends upon