• iopq@lemmy.world
    link
    fedilink
    arrow-up
    50
    ·
    2 months ago

    I still don’t know what people use to create services other than systemd

    If you’re writing bash scripts you’re basically replicating a lot of the functionality of systemd but with larger foot guns

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      19
      ·
      2 months ago

      The system V init approach did the job fine for a couple of decades—even if the actual service definitions were a glorified shell switch statement as you insinuate.

      Canonical did their upstart thing for a couple of years that wasn’t too bad to use, personally I’m glad they ended up switching to systemd though.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 months ago

        All of them are worse in my experience. In a embedded context I use busybox init and if I need something more I used systemd. Systemd actually has a fairly small footprint. A few years ago I ran it on a system with 32mb of ram.

    • unhrpetby@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 months ago

      We can use dinit, s6, runit, and openrc.

      There are more, but these are all top contenders.

      I switched to dinit recently, it uses declarative service management (like systemd unit files). Very clean, fast, lightweight, and portable.