Re: [systemd-devel] List of unit states.
On Tue, 06.01.15 10:52, dE (de.tec...@gmail.com) wrote: Hi. I dont have a better term. When you look at the status of a unit or check the output of list-units, there's a 'load/loaded' column/field also there's an active field/column. What do these mean? I suspect load/loaded states weather they've been enabled at startup and active should show if they're running or not. Is there any documentation that explains these and it's all possible values? An explanation is shown each time you type systemctl, at the end of the output. It's really hard to miss, actually... LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB= The low-level unit activation state, values depend on unit type. And the various states so far have not been documented on purpose, since we want to have the liberty to still make alterations to the state machines. And I am not convinced the time has come yet to set this in stone and document it. Lennart -- Lennart Poettering, Red Hat ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] List of unit states.
Hi, Lennart Poettering: And the various states so far have not been documented on purpose, since we want to have the liberty to still make alterations to the state machines. And I am not convinced the time has come yet to set this in stone and document it. You might document it but add a fat this list may change whenever systemd gets updated, so don't depend on it too much warning. Then again, frankly, to me the LOAD/ACTIVE/SUB states are self-explaining enough that I didn't yet miss any documentation of them … -- -- Matthias Urlichs ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] List of unit states.
On 01/06/15 11:58, Andrei Borzenkov wrote: В Tue, 06 Jan 2015 10:52:17 +0530 dE de.tec...@gmail.com пишет: Hi. I dont have a better term. When you look at the status of a unit or check the output of list-units, there's a 'load/loaded' column/field also there's an active field/column. What do these mean? I suspect load/loaded states weather they've been enabled at startup and active should show if they're running or not. LOAD tells whether unit definition was seen. Units can be incomplete when they are referred to by other units. E.g. After=foo.service when foo.service itself does not exist. In this case systemd creates stub for foo.service and its LOAD state would be not-found. ACTIVE tells current running state - whether it is stopped, started, failed etc. SUB is unit-type specific qualifier (or explanation) of active state which hopefully makes it more clear what active means (mounted, running etc). I do not think there is exhaustive list somewhere beyond sources. Ok, thanks for the info. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel