Edit: I’ll probably use the wifi connection as an indication of power outage:)
I got a UPS that apparenlty doesnt send a shutdown signal when power goes off from the mains. What could I do to let the server know ac power is off and gracefully shut down?
My ups: Powertech UPS 1150VA Line Interactive PT-1150LI https://www.skroutz.gr/s/23613693/Powertech-UPS-Line-Interactive-1150VA-690W-me-2-Schuko-Prizes.html
I’m thinking of somehow having a device sending an “on” signal when connected to the mains that when it is interrupted (like, gone for X amount of time) the server shuts down. Then also set my server to attempt to boot up automatically every half an hour.

A pi and a wifi extender with ethernet output (I think I have the latter) would probably complete this setup, but hmm Im already over budget and too bored to buy and set up a pi right now. Maybe I’ll do it that way in the future.
At least where the server is rarely ever there power outages, let alone concurent power outages.