Hi Lance, Thanks for your reply!
On Tuesday, 23 August 2022 14:33:11 CEST Lance Lin wrote: > > 1. Always let jobs finish cleanly: TimeoutStopSec=infinity > > I strongly prefer this option in all cases (desktop/server/...). > > Sure, I think this is easy enough to do and it does make sense. > > I can push a patch for this. Sounds great, I also think this is the best way to solve it. I did some local testing already with long-running jobs and can confirm TimeoutStopSec=infinity in the [Service] section works perfectly. Anacron will finish its current job cleanly (cron.daily etc) and only then stop/restart. > > 2. SIGUSR1 anacron as is the case now, then on timeout SIGTERM to all > > processes in the group, then on timeout again SIGKILL all processes in the > > group. I must admit I don't know how to implement this with systemd > > services. > This change is more involved. At present, anacron is in "legacy" status. I > recently picked up the package as part of the cronie transition. cronie is > expected to replace cron/anacron in the future and is actively developed by > Fedora. I would suggest we place major changes/improvements in that > project. Makes sense, I fully agree with you. Hotfixing anacron by disabling timeout should be all that's needed until the cronie transition is complete. Cheers, -- Melvin Vermeeren Systems engineer
signature.asc
Description: This is a digitally signed message part.