I have created a systemd user timer that expires daily, i.e. at midnight. The problem is that my computer is normally suspended at night. When I wake it up in the morning, I want the timer to trigger, but that doesn't happen. I discovered the Persistent option, but that only helps when the system is powered down, since it triggers expired timers when starting the services. Is there a solution to this other than e.g. running an hourly timer and saving a timestamp to a file somewhere?
Edit 2017-03-17:
I'm using systemd 231 on ubuntu 16.10.
What I want to is to run remind once a day, preferably when I wake up the computer in the morning.
Best Answer
It seems there is no problem with the
Persistent
option and suspend. The problem seems to be thatPersistent=true
only works if the timer has had a chance to trigger at least once, i.e. if LAST is not n/a. But my computer is normally suspended at midnight, so the timer has never triggered.