From: aq <aquynh@gmail.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: Gerd Knorr <kraxel@suse.de>, xen-devel@lists.xensource.com
Subject: Re: stable / unstable parallel install?
Date: Wed, 1 Jun 2005 16:35:22 +0900 [thread overview]
Message-ID: <9cde8bff05060100352b692bd7@mail.gmail.com> (raw)
In-Reply-To: <8b80f71ae0544a6c3c2ff77c17e845aa@cl.cam.ac.uk>
[-- Attachment #1: Type: text/plain, Size: 775 bytes --]
On 5/31/05, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
>
> On 30 May 2005, at 17:00, aq wrote:
>
> > yes, that is the case, since in /usr/sbin/xend, we have:
> >
> > XCS_EXEC = "/usr/sbin/xcs"
> >
> > should we execute xcs without the full path?
>
> Perhaps best would be to try with no path, and fall back to
> /usr/sbin/xcs. I'd definitely take a tested patch to that effect (for
> both -testing and -unstable).
>
Keir, there is no xcs in -testing.
Here is the patch: it tries to execute xcs without full path first,
then if there is error, it fallbacks to the default path.
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
$ diffstat xcs_nopath.diff
xend | 15 ++++++++++-----
1 files changed, 10 insertions(+), 5 deletions(-)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: xcs_nopath.diff --]
[-- Type: text/x-patch; name="xcs_nopath.diff", Size: 1486 bytes --]
===== tools/misc/xend 1.23 vs edited =====
--- 1.23/tools/misc/xend 2005-05-25 03:53:31 +09:00
+++ edited/tools/misc/xend 2005-06-01 16:25:06 +09:00
@@ -27,8 +27,10 @@
XCS_PATH = "/var/lib/xen/xcs_socket"
XCS_EXEC = "/usr/sbin/xcs"
+XCS_NP_EXEC = "xcs" # xcs with no path
XCS_PIDFILE = "/var/run/xcs.pid"
XCS_ARGS = (XCS_EXEC, "-p", XCS_PIDFILE)
+XCS_NP_ARGS = (XCS_NP_EXEC, "-p", XCS_PIDFILE) # execute xcs with no path
# add fallback path for non-native python path installs if needed
sys.path.append('/usr/lib/python')
@@ -92,12 +94,15 @@
if not os.path.isdir(os.path.dirname(XCS_PATH)):
os.makedirs(os.path.dirname(XCS_PATH))
try:
- os.execvp(XCS_EXEC, XCS_ARGS)
+ os.execvp(XCS_NP_EXEC, XCS_NP_ARGS) # execute xcs with no path
except:
- hline()
- msg("Tried to start xcs, but failed. Is it installed?")
- hline()
- raise CheckError("couldn't start xcs")
+ try:
+ os.execv(XCS_EXEC, XCS_ARGS) # fallback to execute xcs in default path
+ except:
+ hline()
+ msg("Tried to start xcs, but failed. Is it installed?")
+ hline()
+ raise CheckError("couldn't start xcs")
if (not xcs_running()):
hline()
msg("Failed to start the control interface switch.")
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
next prev parent reply other threads:[~2005-06-01 7:35 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-30 13:22 stable / unstable parallel install? Gerd Knorr
2005-05-30 13:26 ` Steven Hand
2005-05-30 13:35 ` Gerd Knorr
2005-05-31 2:52 ` Jacob Gorm Hansen
2005-05-30 13:34 ` Keir Fraser
2005-05-30 15:50 ` Gerd Knorr
2005-05-30 16:00 ` aq
2005-05-30 16:15 ` Keir Fraser
2005-06-01 7:35 ` aq [this message]
2005-05-30 16:03 ` aq
2005-05-30 16:17 ` Keir Fraser
2005-05-30 17:22 ` Gerd Knorr
2005-05-30 18:38 ` aq
2005-05-31 1:50 ` aq
2005-05-31 9:54 ` Gerd Knorr
2005-06-01 6:03 ` aq
-- strict thread matches above, loose matches on Subject: below --
2005-05-31 11:09 Ian Pratt
2005-06-01 7:46 Ian Pratt
2005-06-01 8:20 ` aq
2005-06-01 8:56 ` Gerd Knorr
2005-06-01 9:19 Ian Pratt
2005-06-01 9:59 ` Gerd Knorr
2005-06-04 14:57 ` aq
2005-06-09 1:28 ` Rusty Russell
2005-06-09 1:09 Ian Pratt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9cde8bff05060100352b692bd7@mail.gmail.com \
--to=aquynh@gmail.com \
--cc=Keir.Fraser@cl.cam.ac.uk \
--cc=kraxel@suse.de \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.