Why do they use Shell?

Sorry for bad English. English isn’t my native languange

  • Alex@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    7 months ago

    You can end up with a lot of boiler plate code and with duplication you run the risk that one unit tweaks the boiler plate in a way that behaves differently. This isn’t insurmountable and a lot of rc scripts source a library of common functions shared between units. However from the point of view of the executor each unit is it’s own whole ball of shell script code.

    • dsemy@lemm.ee
      link
      fedilink
      English
      arrow-up
      8
      ·
      7 months ago

      Most service scripts on my machine (Void with runit) are less than 10 lines long, and don’t contain any “boiler plate” other than a shebang.