Hi guys, I recently installed Linux mint on a spare laptop I had to check if I can daily drive this and since I run Syncthing Windows setup on this device before and I essentially want to replicate that setup here which means Syncthing starts up automatically on login but with the condition that the device should be connected to ac power and if it gets disconnected kill the process right away. I could easily have this in Windows setup and also in Syncthing-fork for Android with a simple toggle. How can I replicate this Linux mint as well?

  • aprehendedmerlin@lemmy.dbzer0.comOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    13 days ago

    Ok thanks now I just need to figure out systemctl and it’s options… Hope linux worth all this effort I’m putting in my little spare time I have these days

    • TrickDacy@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      13 days ago

      I think it’s worth the time. You’ll at least be learning useful information for the future versus just spending time in windows fighting a new shitty thing after each update