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:
committed by
Pavel Emelyanov
parent
b67afac623
commit
eb79300dfd
@@ -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"
|
||||
|
Reference in New Issue
Block a user