• Johanno@feddit.de
    link
    fedilink
    arrow-up
    18
    arrow-down
    3
    ·
    8 months ago

    I am fine with systemd. It works. It is more complicated than init.d

    Before you copied some random file you edited and put it in init.d and it worked. Now you copy some systemd services file into systemd and run enable and start and it doesn’t work because you don’t know what you are doing.

    I didn’t know what I was doing in init.d too but now I have to learn systemd services. Once you know a bit it will work then (probably)

    • ebc@lemmy.ca
      link
      fedilink
      arrow-up
      25
      arrow-down
      1
      ·
      8 months ago

      I disagree. Before I had to copy and edit a huge-ass script (100+ lines) in init.d where 80% of it was concerned with PID files. I just want to start a process on boot, why is it so hard?

      Now I can look at the documentation and write a simple unit file myself. It’s like 4 lines.

    • taladar@sh.itjust.works
      link
      fedilink
      arrow-up
      10
      ·
      8 months ago

      Before you copied some random file you edited and put it in init.d and it worked.

      Before you copied some random file you edited and put it in init.d and it appeared to be working but then failed in random ways the first time you restarted, the first time you rebooted, the first time you restarted it via sudo instead of directly as root since some environment variable differed,…

      So really it only appeared to be working in my experience because you had no real way to check.

      • Johanno@feddit.de
        link
        fedilink
        arrow-up
        3
        ·
        8 months ago

        I mean it should be obviously clear that copying random files isn’t sth. You should do anyways

        • taladar@sh.itjust.works
          link
          fedilink
          arrow-up
          4
          ·
          8 months ago

          Well, in this context what we are talking about is some random init script from some other service because nobody wants to write all that crap from scratch every time.