Giter Club home page Giter Club logo

Comments (7)

itamarst avatar itamarst commented on June 19, 2024

I'm pretty sure this is possible with /containers?all=1 request.

from geard.

smarterclayton avatar smarterclayton commented on June 19, 2024

@wallrj itamarst is correct, all=1 is the equivalent.

from geard.

wallrj avatar wallrj commented on June 19, 2024

Thanks @smarterclayton and sorry for the noise. Here's where I've started using the ?all=1 query string in our product.

I'd really appreciate if you had time to comment there about the different unit states that we can expect to be included by all=1. Also if you could comment on the circumstances in which a unit reaches the dead state. Or just some pointers to the relevant source code.

Thanks again for gear 😄

from geard.

smarterclayton avatar smarterclayton commented on June 19, 2024

By definition anything systemd is tracking in memory is in one of these states - with the special caveat that systemd reserves the right to remove anything from memory that it doesn't need to track. So http://cgit.freedesktop.org/systemd/systemd/tree/src/core/unit.h#n47 are the states systemd tracks. If something is unloaded it just means systemd doesn't need it. So anything that is linked into systemd, but not loaded in memory, has the equivalent ActiveState "inactive", LoadState "loaded", and SubState "dead", even though systemd doesn't return them.

from geard.

itamarst avatar itamarst commented on June 19, 2024

So geard provides the extra benefit of adding in stuff that is not in systemd memory by scanning the filesystem, as mentioned in the mailing list post above?

from geard.

smarterclayton avatar smarterclayton commented on June 19, 2024

Right - you can call systemd list-unit-files which scans all the watched folders - but that's a superset of what geard scans. Since geard only exposes certain named units and there is a convention for those, we settled for the slightly more efficient scan.

from geard.

itamarst avatar itamarst commented on June 19, 2024

Excellent, thanks.

from geard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.