blob: 638f971a541a84500f996f3e24a4f2c5cadfc3b2 [file] [log] [blame]
Faisal Awada9ed0f382025-08-14 13:21:46 -05001#include "chassis_manager.hpp"
2
3#include <CLI/CLI.hpp>
4#include <phosphor-logging/lg2.hpp>
5#include <sdbusplus/bus.hpp>
6#include <sdeventplus/event.hpp>
7
8#include <filesystem>
9
10using namespace phosphor::power;
11
12int main()
13{
14 using namespace phosphor::logging;
15
16 CLI::App app{"OpenBMC Power Supply Unit Monitor"};
17
18 auto bus = sdbusplus::bus::new_default();
19 auto event = sdeventplus::Event::get_default();
20
21 // Attach the event object to the bus object so we can
22 // handle both sd_events (for the timers) and dbus signals.
23 bus.attach_event(event.get(), SD_EVENT_PRIORITY_NORMAL);
24
25 chassis_manager::ChassisManager chassis_manager(bus, event);
26
27 return chassis_manager.run();
28}