[CRIU] [PATCH] page-server: introduce the --daemon long option
Andrey Vagin
avagin at openvz.org
Mon May 20 09:43:11 EDT 2013
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
crtools.c | 3 ++-
test/zdtm.sh | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/crtools.c b/crtools.c
index ef1ce41..5b17f58 100644
--- a/crtools.c
+++ b/crtools.c
@@ -91,6 +91,7 @@ int main(int argc, char *argv[])
{ "leave-stopped", no_argument, 0, 's' },
{ "leave-running", no_argument, 0, 'R' },
{ "restore-detached", no_argument, 0, 'd' },
+ { "daemon", no_argument, 0, 'd' },
{ "contents", no_argument, 0, 'c' },
{ "file", required_argument, 0, 'f' },
{ "images-dir", required_argument, 0, 'D' },
@@ -415,7 +416,7 @@ usage:
"Page server options\n"
" --address ADDR address of page server\n"
" --port PORT port of page server\n"
-" -d run in the background\n"
+" -d|--daemon run in the background\n"
"\n"
"Show options:\n"
" -f|--file FILE show contents of a checkpoint file\n"
diff --git a/test/zdtm.sh b/test/zdtm.sh
index f4ca882..1220828 100755
--- a/test/zdtm.sh
+++ b/test/zdtm.sh
@@ -349,7 +349,7 @@ EOF
mkdir -p $ddump
if [ $PAGE_SERVER -eq 1 ]; then
- $CRTOOLS page-server -D $ddump -o page_server.log -v 4 --port $PS_PORT -d
+ $CRTOOLS page-server -D $ddump -o page_server.log -v 4 --port $PS_PORT --daemon
PS_PID=$!
opts="--page-server --address 127.0.0.1 --port $PS_PORT"
fi
--
1.8.2
More information about the CRIU
mailing list