Displaying 4 results from an estimated 4 matches for "contains_someth".
2014 Dec 06
1
Bug#772274: xen-utils-common: when upgrading package: insserv: Service xenstored has to be enabled to start service xendomains
...;$RUNLEVEL"; then read RUNLEVEL REST < <(/sbin/runlevel); fi
if test -e /etc/init.d/S[0-9][0-9]${1}; then return 0; fi
return 1
}
fi
if ! which usleep >&/dev/null
then
usleep()
{
if [ -n "$1" ]
then
sleep $(( $1 / 1000000 ))
fi
}
fi
rc_reset
contains_something()
{
if [ -d "$1" ] && [ `/bin/ls $1 | wc -l` -gt 0 ]
then
return 0
else
return 1
fi
}
rdname()
{
NM=$($CMD create --quiet --dryrun --defconfig "$1" |
sed -n 's/^.*(name \(.*\))$/\1/p;s/^.*"name": "\(.*\)",$/\1/p'...
2007 Jun 29
3
[PATCH] Make xendomains ignore lost+found
...Mark Williamson in BZ #681
Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>
--- xendomains.orig 2006-06-17 14:35:48.000000000 +1000
+++ xendomains 2006-06-17 14:45:29.000000000 +1000
@@ -207,10 +207,11 @@
if [ "$XENDOMAINS_RESTORE" = "true" ] &&
contains_something "$XENDOMAINS_SAVE"
then
+ XENDOMAINS_SAVED=`/bin/ls $XENDOMAINS_SAVE/* | grep -v ''lost+found''`
mkdir -p $(dirname "$LOCKFILE")
touch $LOCKFILE
echo -n "Restoring Xen domains:"
- for dom in $XENDOMAINS_SAVE/*; do
+ for dom in $XEND...
2012 May 06
1
Bug#671750: Configuration of domain save/restore broken
...ed in /etc/default/xendomains (XENDOMAINS_SAVE,
XENDOMAINS_RESTORE, etc.) was lost. I can't check exactly when because
there's no Vcs defined for this package.
4.1.2-3 had in /etc/init.d/xendomains for restore:
if [ "$XENDOMAINS_RESTORE" = "true" ] &&
contains_something "$XENDOMAINS_SAVE"
then ?
and for rdnames:
if ! contains_something "$XENDOMAINS_AUTO"
then
return
fi
etc.
4.1.2-5 has unconditionally for start restore:
for file in $XENDOMAINS_SAVE/*; do
if [ -f $file ] ; then
?
and for stop_save:...
2013 Jun 30
18
Xen 4.2.2 /etc/init.d/xendomains save and restore of domains does not work
Hello,
in the last days I switched from Xen 4.2.1 to Xen 4.2.2 (source from git
repository tag 4.2.2)
commit a125ec6a4a2f028f97f0bdd8946d347a36dbe76b
Author: Jan Beulich <jbeulich@suse.com>
Date: Tue Apr 23 18:42:55 2013 +0200
update Xen version to 4.2.2
My "base system" is a debian squeeze. For Xen I use the xl toolstack.
Since updating to 4.2.2 the autosave and