Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 409189

Summary: app-emulation/lxc-0.8.0_rc2-r1 : add {pre,post}{up,down} capabilities to init script [patch]
Product: Gentoo Linux Reporter: Guillaume ZITTA <gentoo.guillaume>
Component: New packagesAssignee: Diego Elio Pettenò (RETIRED) <flameeyes>
Severity: normal CC: dev-zero, virtualization, zubkov318
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: lxc init script's patch
lxc init script's patch
init script for 0.8rc2

Description Guillaume ZITTA 2012-03-21 15:50:24 UTC
Sometimes you need to do something before or after a container starts or stops.
For example :
- (u)mount lvm volume
- add/del firewall rules

I modified the init script to do that and the patch

Reproducible: Always

Actual Results:  
no script executed

Expected Results:  
/etc/lxc/$CONTAINER.{pre,post}{up,down} will be executed if exists
Comment 1 Guillaume ZITTA 2012-03-21 15:55:01 UTC
Created attachment 306193 [details, diff]
lxc init script's patch
Comment 2 Guillaume ZITTA 2012-03-21 15:59:12 UTC
Created attachment 306195 [details]
lxc init script's patch

ooops, my patch does more than expected (correct one is uploaded)
Comment 3 Guillaume ZITTA 2012-10-02 07:35:59 UTC
Created attachment 325520 [details]
init script for 0.8rc2
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2014-12-21 10:02:10 UTC
This has been removed from the tree. If this is still relevant please re-open, and update your patches to the latest version.