From: Alexander Smirnov <asmirnov@ilbers.de>
To: isar-users@googlegroups.com
Cc: Alexander Smirnov <asmirnov@ilbers.de>
Subject: [PATCH 3/4] scripts: Add option to store QEMU pid
Date: Fri, 6 Oct 2017 13:34:21 +0300 [thread overview]
Message-ID: <20171006103422.25393-4-asmirnov@ilbers.de> (raw)
In-Reply-To: <20171006103422.25393-1-asmirnov@ilbers.de>
Add possibility to store QEMU pid to file for further usage.
Signed-off-by: Alexander Smirnov <asmirnov@ilbers.de>
---
scripts/start_vm | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/scripts/start_vm b/scripts/start_vm
index 444512b..400484a 100755
--- a/scripts/start_vm
+++ b/scripts/start_vm
@@ -61,6 +61,7 @@ show_help() {
echo " Supported: jessie, stretch."
echo " -o, --out FILE Route QEMU console output to"
echo " specified file."
+ echo " -p, --pid FILE Store QEMU pid to file."
echo " --help display this message and exit."
echo
echo "Exit status:"
@@ -99,6 +100,10 @@ do
EXTRA_ARGS="$EXTRA_ARGS -serial file:$2"
shift
;;
+ -p|--pid)
+ EXTRA_ARGS="$EXTRA_ARGS -pidfile $2"
+ shift
+ ;;
*)
echo "error: invalid parameter '$key', please try '--help' to get list of supported parameters"
exit $ES_BUG
--
2.1.4
next prev parent reply other threads:[~2017-10-06 10:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-06 10:34 [PATCH 0/4] Simple smoke test for QEMU Alexander Smirnov
2017-10-06 10:34 ` [PATCH 1/4] scripts: Remove bashism from sh script Alexander Smirnov
2017-10-06 10:34 ` [PATCH 2/4] scripts: Add option to route start_vm output to file Alexander Smirnov
2017-10-06 10:34 ` Alexander Smirnov [this message]
2017-10-06 10:34 ` [PATCH 4/4] scripts: Add simple smoke test Alexander Smirnov
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=20171006103422.25393-4-asmirnov@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox