search for: parseln

Displaying 15 results from an estimated 15 matches for "parseln".

Did you mean: parsefn
2007 Apr 18
0
Bug#395305: /etc/init.d/xendomains parseln() and long domU names
...GE----- Hash: SHA1 This tripped me up recently too, but i found i needed a different patch: 0 aesop:~# diff -u /etc/init.d/xendomains{.orig,} - --- /etc/init.d/xendomains.orig 2007-04-18 12:04:04.000000000 -0400 +++ /etc/init.d/xendomains 2007-04-18 13:00:28.000000000 -0400 @@ -128,9 +128,9 @@ parseln() { - - name=`echo "$1" | cut -c0-17` + name=`echo $1 | cut -d\ -f1` name=${name%% *} - - rest=`echo "$1" | cut -c18- ` + rest=`echo $1 | cut -d\ -f2-` read id mem cpu vcpu state tm < <(echo "$rest") } 1 aesop:~# note that i stripped...
2014 Dec 06
1
Bug#772274: xen-utils-common: when upgrading package: insserv: Service xenstored has to be enabled to start service xendomains
...thing "$XENDOMAINS_AUTO" then return fi for dom in $XENDOMAINS_AUTO/*; do rdname $dom if test -z $NAMES; then NAMES=$NM; else NAMES="$NAMES|$NM" fi done } LIST_GREP='(domain\|(domid\|(name\|^ {$\|"name":\|"domid":' parseln() { if [[ "$1" =~ '(domain' ]] || [[ "$1" = "{" ]]; then name=;id= elif [[ "$1" =~ '(name' ]]; then name=$(echo $1 | sed -e 's/^.*(name \(.*\))$/\1/') elif [[ "$1" =~ '(domid' ]]; then...
2006 May 10
1
Bug(?) in rc scripts?
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available Url : http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20060509/ec1f5ba0/attachment.pgp
2007 Jul 09
1
Bug#402974: additional info
...ut still unfixed bug in Xen upstream that they only cut the first 14 characters, and if your domain has a name like server-nameserver-test, you're out of luck. IMHO a better fix is described in my Xen bugreport for this: http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=859 basically, the parseln() function should look like: parseln() { #name=`echo "$1" | cut -c0-17` name=`echo "$1" | cut -d " " -f 1` name=${name%% *} #rest=`echo "$1" | cut -c18- ` rest=`echo "$1" | cut -d " " -f 2-` read id mem cpu vcpu state tm...
2006 Dec 13
1
Bug#402974: xen-utils-common: xen domain do not always shutdown
...s bug #395305). --- xendomains.org 2006-11-28 11:45:39.000000000 +0100 +++ xendomains 2006-12-09 01:01:06.000000000 +0100 @@ -1,4 +1,4 @@ -#!/bin/bash -x +#!/bin/bash ### BEGIN INIT INFO # Provides: xendomains # Required-Start: $syslog $remote_fs xend @@ -128,9 +128,9 @@ parseln() { - name=`echo "$1" | cut -c0-17` + name=`echo "$1" | cut -c0-40` name=${name%% *} - rest=`echo "$1" | cut -c18- ` + rest=`echo "$1" | cut -c41- ` read id mem cpu vcpu state tm < <(echo "$rest") } @@ -204,15 +204...
2008 Sep 11
1
Error in /etc/init.d/xendomains if using option XEN_DOMAINS_AUTO_ONLY=true - saving of the domains always fails / shutdown is called
...ode is in the beginning of the loop in the stop() procedure: stop() { # Collect list of domains to shut down if test "$XENDOMAINS_AUTO_ONLY" = "true"; then rdnames fi echo -n "Shutting down Xen domains:" while read LN; do parseln "$LN" if test $id = 0; then continue; fi echo -n " $name" if test "$XENDOMAINS_AUTO_ONLY" = "true"; then case $name in ($NAMES) # nothing ;; (*...
2008 Sep 11
1
Error in /etc/init.d/xendomains if using option XEN_DOMAINS_AUTO_ONLY=true - saving of the domains always fails / shutdown is called
...ode is in the beginning of the loop in the stop() procedure: stop() { # Collect list of domains to shut down if test "$XENDOMAINS_AUTO_ONLY" = "true"; then rdnames fi echo -n "Shutting down Xen domains:" while read LN; do parseln "$LN" if test $id = 0; then continue; fi echo -n " $name" if test "$XENDOMAINS_AUTO_ONLY" = "true"; then case $name in ($NAMES) # nothing ;; (*...
2013 Jan 07
4
Xendomains always broken for me, nobody else?
...quot;Xen saved domain"  fi  $CMD list &> /dev/null @@ -202,10 +204,10 @@      done  } -LIST_GREP=''((domain\|(domid\|(name\|^{$\|"name":\|"domid":'' +LIST_GREP=''((domain$\|(domid\|(name\|^{$\|"name":\|"domid":''  parseln()  { -    if [[ "$1" =~ ''(domain'' ]] || [[ "$1" = "{" ]]; then +    if [[ "$1" = ''(domain'' ]] || [[ "$1" = "{" ]]; then          name=;id=      elif [[ "$1" =~ ''(name'' ]]; the...
2007 Mar 10
0
Bug#414294: xen-utils-common: /etc/init.d/xendomains fail to save domains with "long" names
...nd this is too short to get the entire domain name I use. I worked around it by using this patch, by accepting 25 characters instead of 17. --- /etc/init.d/xendomains.orig 2007-03-10 14:40:09.000000000 +0100 +++ /etc/init.d/xendomains 2007-03-10 14:40:21.000000000 +0100 @@ -128,9 +128,9 @@ parseln() { - name=`echo "$1" | cut -c0-17` + name=`echo "$1" | cut -c0-25` name=${name%% *} - rest=`echo "$1" | cut -c18- ` + rest=`echo "$1" | cut -c26- ` read id mem cpu vcpu state tm < <(echo "$rest") } Perhaps it is bett...
2007 Mar 17
0
Bug#395305: (no subject)
Content-Type: multipart/mixed; boundary="===============0382030028==" MIME-Version: 1.0 From: Albert Dengg <a_d@gmx.at> To: Debian Bug Tracking System <395305@bugs.debian.org> Subject: xen-utils-common: here is a small patch to correctly handle long domU names in parseln Message-ID: <20070317182707.16837.48971.reportbug@audhumbla.dengg.priv.at> X-Mailer: reportbug 3.31 Date: Sat, 17 Mar 2007 19:27:07 +0100 X-Debbugs-Cc: a_d@gmx.at, a_d@gmx.at This is a multi-part MIME message sent by reportbug. --===============0382030028== Content-Type: text/plain; charse...
2010 Apr 19
0
redhat4.6-32bit DomU with pv driver can''t be saved
...because of bash version. So I modified it as follow: root@r02k08027 # diff -up /etc/init.d/xendomains /etc/init.d/xendomains_31 --- /etc/init.d/xendomains 2010-04-08 00:12:04.000000000 +0800 +++ /etc/init.d/xendomains_31 2010-04-19 22:45:35.000000000 +0800 @@ -182,11 +182,11 @@ rdnames() parseln() { - if [[ "$1" =~ ''(domain'' ]]; then + if [[ "$1" == ''(domain''* ]]; then name=;id= - else if [[ "$1" =~ ''(name'' ]]; then + else if [[ "$1" == ''(name''* ]]; th...
2010 Apr 19
0
redhat4.6-32bit DomU with pv driver can''t be saved
...because of bash version. So I modified it as follow: root@r02k08027 # diff -up /etc/init.d/xendomains /etc/init.d/xendomains_31 --- /etc/init.d/xendomains 2010-04-08 00:12:04.000000000 +0800 +++ /etc/init.d/xendomains_31 2010-04-19 22:45:35.000000000 +0800 @@ -182,11 +182,11 @@ rdnames() parseln() { - if [[ "$1" =~ ''(domain'' ]]; then + if [[ "$1" == ''(domain''* ]]; then name=;id= - else if [[ "$1" =~ ''(name'' ]]; then + else if [[ "$1" == ''(name''* ]]; th...
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
2009 Feb 04
6
Mixed dom0/domU usage?
Hi, I'm wondering about the impact of using both dom0 and domU's on a server at the same time. I'm worried about the performance impact of running a Mysql server in a domU and now I'm thinking about moving the Mysql part of a LAMP setup into dom0 and running a few Apache guests as domUs. Since the Apaches will serve mostly from an NFS share they won't have much impact on
2013 Jun 18
33
DomU suspension/hibernation
Hey, I thought there was supposed to be an ability for domU''s to be put into a hibernated state (E.g. current running tasks and memory) when dom0 is shutdown or rebooted. When I look in my /etc/default/xendomains file, I have the variable''s "XENDOMAINS_SAVE=/var/lib/xen/save" and "XENDOMAINS_RESTORE=true". However, when I reboot, I always have to restart my