2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

crtools: initial skeleton for cr_service

The criu service is a daemon, that opens a unix socket and listens for
incoming requests. The requests will be declared in protobuf/rpc.proto
and for now will only contain the 'dump' request.

Signed-off-by: Ruslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Ruslan Kuprieiev
2013-09-13 13:43:56 +04:00
committed by Pavel Emelyanov
parent b67afac623
commit eb79300dfd
4 changed files with 17 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "page-xfer.h"
#include "tty.h"
#include "file-lock.h"
#include "cr-service.h"
struct cr_options opts;
@@ -334,6 +335,9 @@ int main(int argc, char *argv[])
if (!strcmp(argv[optind], "page-server"))
return cr_page_server(opts.restore_detach);
if (!strcmp(argv[optind], "service"))
return cr_service();
pr_msg("Unknown command \"%s\"\n", argv[optind]);
usage:
pr_msg("\n"