summaryrefslogtreecommitdiffstats
path: root/bmc_state_manager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* BMC state manager support for LastRebootTimeMatt Spinler2018-07-241-0/+10
| | | | | | | | | | | | | | | | Use the uptime value to calculate the time of the last BMC reboot when the LastRebootTime property is read. Calculates it on the fly instead of once at startup so that if someone changes the BMC time the value will still be accurate. Resolves openbmc/openbmc#3159 Tested: Verify the property returns the right value. Change-Id: I4bc8d2cdf18c225b24c98d9567d053c3246b7506 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
* Apply clang code format to this state repoAndrew Geissler2018-01-251-59/+53
| | | | | Change-Id: I232af39d8ded90fa3eb37b74d1435ddbf19fffb1 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
* bmc: use latest sdbusplus match APIsPatrick Williams2017-05-111-30/+20
| | | | | Change-Id: I02aca5f8c7e633c6de7608194a0bdb0874ef2090 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
* Add discovery of initial stateJosh D. King2017-02-101-1/+8
| | | | | | | | | | | | Added the method discoverInitialState that will be used to determine if the obmc-standby.target is either active or inactive. This catches the race condition that could happen if just our app was restarted and the signal had already been given and we had missed it. Change-Id: Iadcdcbd2d1045fa62491e9af6e2402d4b17c4a60 Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Process system state changesJosh D. King2017-01-261-5/+38
| | | | | | | | | | We are currently subscribed to the systemd to get a signal notifying us when the obmc-standby.target is ready. Things may change in the future but this is what we have decided to do for now. Change-Id: I81ecdcb45123feb611cf88916c0f9caadcd82dfe Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Add BMC state transition of rebootJosh D. King2017-01-261-3/+10
| | | | | | | | | | This commit should support the transition to reboot a BMC using systemd. Later commits will handle the remaining transition monitoring for updating the current state. Change-Id: I1fb14b8775de4d2cbc522aa3405c8917291bf3cc Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Subscribe to systemd on startupJosh D. King2017-01-261-1/+21
| | | | | | | | | | | Added code for the implementation of the method subscribeToSystemdSignals. The reason for this is because we want to catch the obmc-standby.target signal and be notified when it is done which means the BMC is READY. Change-Id: I824b83676db8cb211f5bee954f98a719a773a62b Signed-off-by: Josh D. King <jdking@us.ibm.com>
* Add base support for BMC state managementJosh D. King2017-01-251-0/+38
This is the starting code needing to build the application. Still more to do, this is just the layout for the additional commits that will be done for the state management. Change-Id: Ief1dc96c84b34630e60ef40c99d4faf5b6f6e02e Signed-off-by: Josh D. King <jdking@us.ibm.com>
OpenPOWER on IntegriCloud