Commit eb79300d authored by Ruslan Kuprieiev's avatar Ruslan Kuprieiev Committed by Pavel Emelyanov

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: 's avatarRuslan Kuprieiev <kupruser@gmail.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent b67afac6
......@@ -53,6 +53,7 @@ obj-y += stats.o
obj-y += string.o
obj-y += sigframe.o
obj-y += arch/$(ARCH)/vdso.o
obj-y += cr-service.o
ifneq ($(MAKECMDGOALS),clean)
incdeps := y
......
#include "cr-service.h"
int cr_service()
{
return 0;
}
......@@ -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"
......
#ifndef __CR_SERVICE_H__
#define __CR_SERVICE_H__
int cr_service(void);
#endif
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