diff --git a/srcpkgs/lxc/files/lxc-autostart/finish b/srcpkgs/lxc/files/lxc-autostart/finish new file mode 100755 index 00000000000..b5591d8d8bb --- /dev/null +++ b/srcpkgs/lxc/files/lxc-autostart/finish @@ -0,0 +1,2 @@ +#!/bin/sh +lxc-autostart -s -t 15 || exit 1 diff --git a/srcpkgs/lxc/files/lxc-autostart/run b/srcpkgs/lxc/files/lxc-autostart/run new file mode 100755 index 00000000000..5e93d5ef35d --- /dev/null +++ b/srcpkgs/lxc/files/lxc-autostart/run @@ -0,0 +1,3 @@ +#!/bin/sh +lxc-autostart || exit 1 +exec chpst -b lxc-autostart pause diff --git a/srcpkgs/lxc/template b/srcpkgs/lxc/template index 8c60e8d57c3..f7be6ff31f4 100644 --- a/srcpkgs/lxc/template +++ b/srcpkgs/lxc/template @@ -3,7 +3,7 @@ _desc="Linux Containers" pkgname=lxc version=1.1.0 -revision=4 +revision=5 build_style=gnu-configure configure_args="--enable-doc --enable-seccomp --enable-cgmanager --enable-capabilities --disable-apparmor --with-distro=none @@ -37,7 +37,7 @@ post_install() { # Install void lxc config/template. vinstall ${FILESDIR}/void.common.conf 644 usr/share/lxc/config vinstall ${FILESDIR}/lxc-void 755 usr/share/lxc/templates - + vsv lxc-autostart } liblxc_package() {