[systemd-devel] [ANNOUNCE] systemd 215

Lennart Poettering lennart at poettering.net
Fri Jul 4 03:22:10 PDT 2014


On Fri, 04.07.14 06:25, Andrey Borzenkov (arvidjaar at gmail.com) wrote:

> В Thu, 3 Jul 2014 22:59:57 +0200
> Lennart Poettering <lennart at poettering.net> пишет:
> 
> > 
> >         * A new command "systemctl is-system-running" has been added
> >           that allows checking the overall state of the system, for
> >           example whether it is fully up and running.
> > 
> 
> Is it more reliable than simply waiting for idle? At which point
> systemd considers system "fully up"?

This is precisely what it does, it waits until for the first time all
jobs have been dispatched.

Note that the command will output more than just a boolean:

    starting     → the first time all jobs have been dispatched has not been reached yet
    stopping     → a shutdown job has been queued
    running      → fully up and running in normal operation, and nothing failed
    maintenance  → up and running in rescue or emergency mode
    degraded     → fully up and running in normal operation, but at least one unit failed

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list