[systemd-devel] [PATCH 1/2] manager: add system-wide enumerate state
Lennart Poettering
lennart at poettering.net
Wed Mar 12 17:41:17 PDT 2014
On Wed, 12.03.14 19:13, WaLyong Cho (walyong.cho at samsung.com) wrote:
> Enumerated states are added. That can have three state. startup, running
> and shutdown. manager is starting up with startup state and change to
> running if default job finish. And shutdown target is loaded then the
> state will be changed to shutdown. This state can also be red
> "GetSystemState" method call of manager interface.
I have now added a slightly more sophisticated scheme for a system-wide
state. It's exposed externally as SystemState property on the manager
object on the bus. And internally you can query it with manager_state().
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list