blob: 83a97fa19de06c2efdade43cd4a55c6cc14987e8 [file] [log] [blame]
// Copyright 2017 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <base/at_exit.h>
#include <base/logging.h>
#include <base/message_loop/message_loop.h>
#include <base/run_loop.h>
#include <brillo/syslog_logging.h>
#include "vm_tools/concierge/service.h"
int main(int argc, char** argv) {
base::AtExitManager at_exit;
base::MessageLoopForIO message_loop;
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
if (argc != 1) {
LOG(ERROR) << "Unexpected command line arguments";
return EXIT_FAILURE;
}
base::RunLoop run_loop;
auto service = vm_tools::concierge::Service::Create(run_loop.QuitClosure());
CHECK(service);
run_loop.Run();
return 0;
}