Post History
I have a systemd unit that runs hourly, but when the computer has just booted/logged in it will "catch up" on the previous run, so it ends up firing right after I log in. Is there a way to make it...
Question
systemd
#2: Post edited
How to make delay systemd unit at boot/login?
- How to delay systemd unit at boot/login?
#1: Initial revision
How to make delay systemd unit at boot/login?
I have a systemd unit that runs hourly, but when the computer has just booted/logged in it will "catch up" on the previous run, so it ends up firing right after I log in. Is there a way to make it wait a minute before attempting to start? It should only when catching up just after a boot. Otherwise, when running on schedule or manually triggered, it shouldn't delay itself. For context, I have a [DNS issue with my unit](https://linux.codidact.com/comments/thread/9838#comment-24762). Of course, I could add the proper targets, but it seems easier to just delay it a bit. Also, delaying is useful in other contexts, like wanting to avoid performance intensive tasks right after boot.