blob: 23bc6b1052835a0f02e6016d311413abb7f60da0 [file] [log] [blame]
// Copyright 2022 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 <brillo/syslog_logging.h>
#include "rgbkbd/rgbkbd_daemon.h"
int main(int argc, char* argv[]) {
brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty);
LOG(INFO) << "Starting Chrome OS RGB Keyboard Daemon";
auto result = rgbkbd::RgbkbdDaemon().Run();
if (result == 0) {
LOG(INFO) << "Chrome OS RGB Keyboard Daemon exited successfully";
} else {
LOG(ERROR) << "Exiting Chrome OS RGB Keyboard Daemon with error code "
<< result;
}
return result;
}