Commit b2846be8 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

page-server: introduce the --daemon long option

Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 66cc9b66
......@@ -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 after creating socket\n"
" -d|--daemon run in the background after creating socket\n"
"\n"
"Show options:\n"
" -f|--file FILE show contents of a checkpoint file\n"
......
......@@ -350,7 +350,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment