summaryrefslogtreecommitdiffstats
path: root/main/lxc/lxc.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/lxc/lxc.initd')
-rw-r--r--main/lxc/lxc.initd11
1 files changed, 4 insertions, 7 deletions
diff --git a/main/lxc/lxc.initd b/main/lxc/lxc.initd
index ae844872a..298051f1f 100644
--- a/main/lxc/lxc.initd
+++ b/main/lxc/lxc.initd
@@ -61,29 +61,26 @@ start() {
ebegin "Starting container ${CONTAINER}"
start-stop-daemon --start $command \
--pidfile $pidfile \
- --wait 500 \
-- \
--daemon \
--pidfile $pidfile \
--name ${CONTAINER} \
--rcfile ${CONFIGFILE} \
--logpriority WARN \
- --logfile /var/log/lxc/${CONTAINER}.log
+ --logfile /var/log/lxc/${CONTAINER}.log \
+ || eend $? || return $?
+ lxc-wait -n ${CONTAINER} -t 5 -s RUNNING
eend $?
}
stop() {
checkconfig || return 1
- ebegin "Shutting down system in container ${CONTAINER}"
+ ebegin "Stopping container ${CONTAINER}"
start-stop-daemon --stop --pidfile ${pidfile} \
--retry ${POWEROFF_SIGNAL:-SIGUSR2}/${TIMEOUT:-30} \
--progress
eend $?
-
- ebegin "Stopping containter ${CONTAINER}"
- lxc-stop -n ${CONTAINER}
- eend $?
}
reboot() {