blob: 09afdb8281f00c0c5f04ebee61513c63521e26d1 [file] [log] [blame]
// Copyright (c) 2010 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 "image-burner/image_burner.h"
#include <base/command_line.h>
#include <base/logging.h>
int main(int argc, char* argv[]) {
CommandLine::Init(argc, argv);
logging::InitLogging("/var/log/image_burner.log",
logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
logging::LOCK_LOG_FILE,
logging::DELETE_OLD_LOG_FILE);
g_type_init();
imageburn::ImageBurnService service;
service.Initialize();
service.Register(chromeos::dbus::GetSystemBusConnection());
service.Run();
return 0;
}