The use case is following:

I’d like to turn off my server at night. Sometimes I stop at 12, sometimes at 1 or 2. If I could ask “is someone watching?” And it returns false, I could postpone the shutdown.

The current solution is to always turn off at 2 and turn on at 7.

How do you guys handle the situation?

  • swooosh@lemmy.worldOP
    link
    fedilink
    English
    arrow-up
    5
    ·
    6 months ago

    Thank you!

    I wrote a bash script that powers off the computer when there was no user activity for 10 minutes.

    • Epzillon@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 months ago

      Neat and handy! I guess you could write some wake-on-LAN shenanigans to make it turn on when a user is trying to connect aswell 👍