News for hackers. Stuff that matters.
Re:Show HN: Interactive systemd (a better way to work with s... by yencabulator on Saturday January 18, 2025 @03:56PM (#42751359)
Think of it as an enum, Type branches the logic.

    enum Service {
        Exec { ExecStart: String, ... }
        Forking { ExecStart: String, ... }
        OneShot { ExecStart: String, ... }
    }
You can argue that sometimes that ExecStart could be a different term, but it'd still end up being the same across multiple enum variants.
Re:Show HN: Interactive systemd (a better way to work with s... by ww520 on Saturday January 18, 2025 @07:06PM (#42752471)
Yes. ExecStart works the same for all the cases. ExecStop works differently though. While ExecStart is the event to kick off the command for the service, ExecStop is not. The asymmetric semantics are where the confusion comes from.