[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [ *** ] Job anacron.service/stop running (15min 49s / no limit)



On 11 Feb 2024 12:21 +0100, from ml@bokomoko.de (Rainer Dorsch):
> - How do I set a timeout/limit for anacron, that it cannot block forever 
> during a reboot?

I believe you want something like:

# systemctl edit anacron.service

and

[Service]
TimeoutStopSec=300

(or whichever value you feel comfortable with)

This will create a drop-in file to customize the anacron.service unit
file with the contents you provide. You can also directly edit the
unit file, but that will cause conflicts when the package is upgraded.

See systemd.service(5) for details; search for TimeoutSec=,
TimeoutStartSec= and TimeoutStopSec=.

-- 
Michael Kjörling                     🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”


Reply to: