[prev in list] [next in list] [prev in thread] [next in thread] 

List:       debian-user
Subject:    Re: [  *** ] Job anacron.service/stop running (15min 49s / no limit)
From:       Michael =?utf-8?B?S2rDtnJsaW5n?= <2695bd53d63c () ewoof ! net>
Date:       2024-02-11 14:26:53
Message-ID: b5b2ac61-f4be-4032-8748-c073d655db5b () home ! arpa
[Download RAW message or body]

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?"

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic