Ken Turner | edb9393 | 2018-02-14 05:27:31 +1100 | [diff] [blame] | 1 | // Copyright 2018 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include <base/logging.h> |
| 6 | #include <brillo/syslog_logging.h> |
| 7 | |
| 8 | #include "ml/daemon.h" |
| 9 | |
| 10 | int main(int argc, char* argv[]) { |
alanlxl | a906513 | 2020-08-13 10:22:41 +1000 | [diff] [blame] | 11 | brillo::InitLog(brillo::kLogToSyslog | brillo::kLogToStderrIfTty); |
| 12 | if (argc != 1) { |
| 13 | LOG(ERROR) << "Unexpected command line arguments"; |
| 14 | return 1; |
| 15 | } |
| 16 | |
Ken Turner | edb9393 | 2018-02-14 05:27:31 +1100 | [diff] [blame] | 17 | ml::Daemon daemon; |
| 18 | daemon.Run(); |
| 19 | return 0; |
| 20 | } |