hack(app-emulation/docker): fix exit under systemd

for some reason docker is crashing when exiting a container when being
supervised by systemd. Fork out for now. Real solution should be:
ExecStart=/usr/bin/docker -d -D -b lxcbr0
This commit is contained in:
Brandon Philips 2013-04-07 16:03:06 -07:00
parent fc27727fa7
commit 163576a5ef

View File

@ -2,7 +2,13 @@
ExecStartPre=/bin/mount --make-rprivate /
ExecStartPre=/sbin/brctl addbr lxcbr0
ExecStartPre=/bin/ifconfig lxcbr0 10.65.41.1
ExecStart=/usr/bin/docker -d -D -b lxcbr0
# HACK: for some reason docker is crashing when exiting a container when being
# supervised by systemd. Fork out for now. Real solution should be:
# ExecStart=/usr/bin/docker -d -D -b lxcbr0
ExecStart=/bin/bash -c "/usr/bin/nohup /usr/bin/docker -d -D -b lxcbr0 &"
ExecStopPost=/bin/ifconfig lxcbr0 down
ExecStopPost=/sbin/brctl delbr lxcbr0