From: Olaf Hering <olaf@aepfle.de>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Jackson <Ian.Jackson@eu.citrix.com>
Subject: Re: [PATCH] tools: xl: add option to run in foreground but still monitor for reboot etc
Date: Mon, 28 Jan 2013 16:22:32 +0100 [thread overview]
Message-ID: <20130128152232.GA16292@aepfle.de> (raw)
In-Reply-To: <1304685658.26692.156.camel@zakaz.uk.xensource.com>
Ian,
the xl migrate command gets a new option -F with this change.
Is it intentional? The "monitor" variable is not used in this part of
the patch.
It got applied in changeset 23350:f531ed84b066
Olaf
On Fri, May 06, Ian Campbell wrote:
> On Wed, 2011-05-04 at 16:36 +0100, Ian Campbell wrote:
> > # HG changeset patch
> > # User Ian Campbell <ian.campbell@citrix.com>
> > # Date 1304523348 -3600
> > # Node ID 6f20fdf37a97db6ff6ce4690057b8fd6662582f5
> > # Parent f033c864926375fd545af71a2f0229c00c4354a7
> > tools: xl: add option to run in foreground but still monitor for reboot etc
>
> v3 updated for 23299:39f2942fe56b "xl: refactor common parts of command
> line parsing"
>
> 8<----------------------
>
> # HG changeset patch
> # User Ian Campbell <ian.campbell@citrix.com>
> # Date 1304685600 -3600
> # Node ID c0d309593d78b3e7340b805f95330249e7142169
> # Parent 94ddef3d9f45fa36aa076a164dfbfa04c09eeb85
> tools: xl: add option to run in foreground but still monitor for reboot etc
>
> Split daemonization option out from monitoring a domain for reboot
> etc. The 'e' option continues to disable both and a new 'F'(oreground)
> option disables only daemonization.
>
> When I'm debugging xl in the foreground this is often the behaviour I
> would like.
> @@ -2864,9 +2877,9 @@ int main_migrate(int argc, char **argv)
> const char *ssh_command = "ssh";
> char *rune = NULL;
> char *host;
> - int opt, daemonize = 1, debug = 0;
> -
> - while ((opt = def_getopt(argc, argv, "C:s:ed", "migrate", 2)) != -1) {
> + int opt, daemonize = 1, monitor = 1, debug = 0;
> +
> + while ((opt = def_getopt(argc, argv, "FC:s:ed", "migrate", 2)) != -1) {
> switch (opt) {
> case 0: case 2:
> return opt;
> @@ -2876,8 +2889,12 @@ int main_migrate(int argc, char **argv)
> case 's':
> ssh_command = optarg;
> break;
> + case 'F':
> + daemonize = 0;
> + break;
> case 'e':
> daemonize = 0;
> + monitor = 0;
> break;
> case 'd':
> debug = 1;
next prev parent reply other threads:[~2013-01-28 15:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 16:24 [PATCH] tools: xl: on create, if debug && !daemonize, wait for domain destroy in the foreground Ian Campbell
2011-05-04 13:44 ` Ian Jackson
2011-05-04 15:00 ` Ian Campbell
2011-05-04 15:36 ` [PATCH] tools: xl: add option to run in foreground but still monitor for reboot etc Ian Campbell
2011-05-06 12:40 ` Ian Campbell
2011-05-17 16:32 ` Ian Jackson
2013-01-28 15:22 ` Olaf Hering [this message]
2013-01-28 15:27 ` Ian Campbell
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=20130128152232.GA16292@aepfle.de \
--to=olaf@aepfle.de \
--cc=Ian.Campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--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.