Lxc-scripts is a project mainly written in Shell, based on the GPL-2.0 license.
Extra scripts for managing LXC containers
Scripts developed by Nelson Pascoal - work started on 8 August 2011
These scripts have been tested on the following platforms: lxc 0.7.4 and Ubuntu 11.04
Testing on new platforms to be done as and when required. If you have tested these scripts, please let us know and contribute your feedback.
Configuration files for containers are assumed to be located in /etc/lxc/
**** lxc-graceful ** gracefully shut down a container by issuing an init 0 - done via -SIGPWR signal.
In order to use the script, make sure the following lines are appended to the /etc/inittab file of your container: p0::powerfail:/sbin/init 0
Script usage:
lxc-graceful
where
**** lxc-config ** original script from http://lxc.sourceforge.net/index.php/about/kernel-namespaces/network/configuration/
configure required dev setup for a new container environment - typically for environments created using debootstrap.
Script usage:
cd
where
############################################################################## More scripts will be added when and if required.