-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd status does not report condition failed (version 228) #2234
Comments
Actually it seems that it only reports if the unit is enabled. The following is ran continuously without rebooting:
|
Basically, we GC units that aren't referenced and are in a clean state. If a condition failed, then we consider it in a clean state (use AssertXYZ= instead of ConditionXYZ= if you'd rather want it to fail). We also load units implicitly if you query their state when they aren't loaded yet. Thus, the condition result is flushed out as soon as nothing references that unit anymore, and when you query the state we'll show you everything freshly loaded. If you want to "pin" a unit in memory, so that its state is never flushed out, it suffices to add some kind of dep from one unit that is known to stay around (such as basic.target) to the unit... We have been thinking about ways to "pin" units in other ways, but it's a hard problem as we we cannot do this too eagerly, in order to keep memory consumption withing reasonable limits. Anyway, the behaviour is kinda intended right now. Closing hence. |
See discussion: systemd#2234
I understand that this is not considered a bug. But I still think that the behavior is unexpected and would like to document it. I opened a small PR to add it to the man pages: |
See discussion: systemd#2234
Log in journal:
Unit file: https://projects.archlinux.org/svntogit/community.git/tree/trunk/vmware-vmblock-fuse.service?h=packages/open-vm-tools&id=03a3752b3a91e24914a02f0706cc1c18fcd9c3b4
The text was updated successfully, but these errors were encountered: