[systemd-devel] Unload disabled units

Michael Chapman mike at very.puzzling.org
Mon Sep 16 10:11:13 UTC 2019


On Mon, 16 Sep 2019, Reindl Harald wrote:
> Am 16.09.19 um 09:36 schrieb Zbigniew Jędrzejewski-Szmek:
> > Normally units should be unloaded immediately if they are stopped
> > and didn't fail. What systemd version are you using?
> 
> the better question is which one are you using because this behavior
> below exists for many years and it's good given that you normally want
> the journald output
> 
> [root at srv-rhsoft:~]$ systemctl status vnc
> ● vnc.service - VNC Server
>    Loaded: loaded (/etc/systemd/system/vnc.service; disabled; vendor
> preset: disabled)
>    Active: inactive (dead)
> 
> Sep 16 11:15:24 srv-rhsoft.rhsoft.net systemd[1]: Started VNC Server.
> Sep 16 11:15:28 srv-rhsoft.rhsoft.net systemd[1]: Stopping VNC Server...
> Sep 16 11:15:28 srv-rhsoft.rhsoft.net systemd[1]: vnc.service: Succeeded.
> Sep 16 11:15:28 srv-rhsoft.rhsoft.net systemd[1]: Stopped VNC Server.
> 
> [root at srv-rhsoft:~]$ rpm -q systemd
> systemd-241-12.git1e19bcd.fc30.x86_64

This unit probably is being unloaded when you're not looking at it. Using 
`systemctl status` on it will force it to be loaded (possibly only 
temporarily). The unit does not need to remain loaded to be able to view 
its journal logs.


More information about the systemd-devel mailing list