Reduce timeout for "stop job is running" systemd

I want to reduce the timeout for the following message when shutting down:

“A stop job is running for … (1m 30s)”

It is usually set to 90 seconds.

I found this:

Is there any easier way to achieve this than to rebuild systemd source code?
Thanks.

Yes, it’s right there in the link you provided. :wink:

is a bad idea to reduce timeout, if we have this wait is that we have an error : best is fix rather than hide

In addition, greatly reducing this delay can be problematic. For example, it is not always a error: I have a backup in progress: if I have a very short timeout I will corrupt my backup.

4 Likes