Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409189 - app-emulation/lxc-0.8.0_rc2-r1 : add {pre,post}{up,down} capabilities to init script [patch]
Summary: app-emulation/lxc-0.8.0_rc2-r1 : add {pre,post}{up,down} capabilities to init...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Diego Elio Pettenò (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-03-21 15:50 UTC by Guillaume ZITTA
Modified: 2014-12-21 10:02 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
lxc init script's patch (gentoo_409189_init.d.patch,1.83 KB, patch)
2012-03-21 15:55 UTC, Guillaume ZITTA
Details | Diff
lxc init script's patch (gentoo_409189_init.d.patch,1.72 KB, text/plain)
2012-03-21 15:59 UTC, Guillaume ZITTA
Details
init script for 0.8rc2 (lxc,4.22 KB, text/plain)
2012-10-02 07:35 UTC, Guillaume ZITTA
Details

Note You need to log in before you can comment on or make changes to this bug.
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.