Systemd/timers: Difference between revisions
Thefossguy (talk | contribs) m Added the use of `OnCalendar` option in the example of `systemd.timers` and add a section on verifying the calendar event by getting next _N_ times when the calendar event would occur. |
Added `RemainAfterExit = true;` to the example since this is probably what people want. |
||
Line 35: | Line 35: | ||
Type = "oneshot"; | Type = "oneshot"; | ||
User = "root"; | User = "root"; | ||
RemainAfterExit = true; # Prevents the service from automatically starting on rebuild. See https://discourse.nixos.org/t/how-to-prevent-custom-systemd-service-from-restarting-on-nixos-rebuild-switch/43431 | |||
}; | }; | ||
}; | }; |