Displaying 3 results from an estimated 3 matches for "timeout_domain".
2012 Dec 03
1
Bug#695041: "service xendomains stop" sleeps XENDOMAINS_STOP_MAXWAIT seconds for every domain
...ins stop" needs more than
XENDOMAINS_STOP_MAXWAIT * "number of xen domains known to xend" seconds
to run.
Here is a pseudo call trace:
do_stop_shutdown()
{
...
while read id name rest; do
log_action_begin_msg "Waiting for Xen domain $name ($id) to shut down"
timeout_domain "$name" "$XENDOMAINS_STOP_MAXWAIT"
log_action_end_msg $?
done < <(/usr/lib/xen-common/bin/xen-init-list)
}
so timeout_domain is called with the name of the domain.
timeout_domain()
{
name="$1"
TIMEOUT="$2"
for no in $(seq 0 $TIMEOUT);...
2014 Mar 23
1
Bug#742397: xen-utils-common: /etc/init.d/dom0weight is hardcoded to use xm
...T); do
if [ -z "$COPROC_PID" ]; then break; fi
sleep 1
log_action_cont_msg
done
kill -INT "$COPROC_PID" >/dev/null 2>&1
wait $PID
local rc=$?
log_action_end_msg $rc
[ $rc -gt 0 ] && cat <&$COPROC_OUT
exec <&$COPROC_OUT-
}
timeout_domain()
{
name="$1"
TIMEOUT="$2"
for no in $(seq 0 $TIMEOUT); do
if ! check_running "$name"; then return 0; fi
sleep 1
log_action_cont_msg
done
return 1
}
do_start_restore()
{
[ -n "$XENDOMAINS_SAVE" ] || return
[ -d "$XENDOMAINS_SAVE...
2012 Jun 24
3
Bug#678719: xen-utils-common: please label all created directories for SE Linux
...l 2>&1
return $?
}
timeout_coproc()
{
TIMEOUT="$1"
for no in $(seq 0 $TIMEOUT); do
if [ -z "$COPROC_PID" ]; then return 0; fi
sleep 1
log_action_cont_msg
done
kill -INT "$COPROC_PID" >/dev/null 2>&1
wait $COPROC_PID
return 1
}
timeout_domain()
{
name="$1"
TIMEOUT="$2"
for no in $(seq 0 $TIMEOUT); do
if ! check_running "$name"; then return 0; fi
sleep 1
log_action_cont_msg
done
return 1
}
do_start_restore()
{
[ -n "$XENDOMAINS_SAVE" ] || return
[ -d "$XENDOMAINS_SAVE...