We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14d3eb commit 36e9ad3Copy full SHA for 36e9ad3
dbus/methods.go
@@ -291,6 +291,8 @@ func (c *Conn) listUnitsInternal(f storeFunc) ([]UnitStatus, error) {
291
// ListUnits returns an array with all currently loaded units. Note that
292
// units may be known by multiple names at the same time, and hence there might
293
// be more unit names loaded than actual units behind them.
294
+// Also note that a unit is only loaded if it is active and/or enabled.
295
+// Units that are both disabled and inactive will thus not be returned.
296
func (c *Conn) ListUnits() ([]UnitStatus, error) {
297
return c.listUnitsInternal(c.sysobj.Call("org.freedesktop.systemd1.Manager.ListUnits", 0).Store)
298
}
0 commit comments