mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
page-server: introduce the --daemon long option
Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
66cc9b6657
commit
b2846be8c3
@@ -91,6 +91,7 @@ int main(int argc, char *argv[])
|
|||||||
{ "leave-stopped", no_argument, 0, 's' },
|
{ "leave-stopped", no_argument, 0, 's' },
|
||||||
{ "leave-running", no_argument, 0, 'R' },
|
{ "leave-running", no_argument, 0, 'R' },
|
||||||
{ "restore-detached", no_argument, 0, 'd' },
|
{ "restore-detached", no_argument, 0, 'd' },
|
||||||
|
{ "daemon", no_argument, 0, 'd' },
|
||||||
{ "contents", no_argument, 0, 'c' },
|
{ "contents", no_argument, 0, 'c' },
|
||||||
{ "file", required_argument, 0, 'f' },
|
{ "file", required_argument, 0, 'f' },
|
||||||
{ "images-dir", required_argument, 0, 'D' },
|
{ "images-dir", required_argument, 0, 'D' },
|
||||||
@@ -415,7 +416,7 @@ usage:
|
|||||||
"Page server options\n"
|
"Page server options\n"
|
||||||
" --address ADDR address of page server\n"
|
" --address ADDR address of page server\n"
|
||||||
" --port PORT port of page server\n"
|
" --port PORT port of page server\n"
|
||||||
" -d run in the background after creating socket\n"
|
" -d|--daemon run in the background after creating socket\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Show options:\n"
|
"Show options:\n"
|
||||||
" -f|--file FILE show contents of a checkpoint file\n"
|
" -f|--file FILE show contents of a checkpoint file\n"
|
||||||
|
@@ -350,7 +350,7 @@ EOF
|
|||||||
mkdir -p $ddump
|
mkdir -p $ddump
|
||||||
|
|
||||||
if [ $PAGE_SERVER -eq 1 ]; then
|
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=$!
|
PS_PID=$!
|
||||||
opts="--page-server --address 127.0.0.1 --port $PS_PORT"
|
opts="--page-server --address 127.0.0.1 --port $PS_PORT"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user