diff options
Diffstat (limited to 'source/ap/lxc/rc.lxc')
-rw-r--r-- | source/ap/lxc/rc.lxc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/ap/lxc/rc.lxc b/source/ap/lxc/rc.lxc index f97a1b1d..0690d70b 100644 --- a/source/ap/lxc/rc.lxc +++ b/source/ap/lxc/rc.lxc @@ -17,11 +17,7 @@ start_lxc() { if [ "$(lxc-info -n $CONTAIN -c lxc.start.auto)" = "lxc.start.auto = 1" ]; then if [ "$(/usr/bin/lxc-info -s -n $CONTAIN | grep STOPPED$)" ]; then echo "Starting LXC container ${CONTAIN}." - if [ -x /usr/bin/screen ]; then - /usr/bin/screen -dmS init-${CONTAIN} /usr/bin/lxc-start -n $CONTAIN - else - /usr/bin/lxc-start -n $CONTAIN -d - fi + /usr/bin/lxc-start -n $CONTAIN /usr/bin/lxc-wait -n $CONTAIN -s RUNNING if [ $? -gt 0 ]; then return 2 |