How do I skip the 90s timeout in systemd
You have two options:
You can set
TimeoutStopSpec=
on a specific UNIT to a specific value (in seconds*) to wait. You can also set it toinfinity
in which case SIGKILL will never be sent (not recommended as you may end up with runaway services that are hard to debug).Set
DefaultTimeoutStopSec=
inside/etc/systemd/system.conf
(oruser.conf
, or in one of the*.d
directories) to a default value that all UNITs that do not haveTimeoutStopSpec=
specified will use. The deafult for this setting is the 90s you normally see.
Man page references:
man systemd.service
forTimeoutStopSpec=
man systemd-system.conf
forDefaultTimeoutStopSec=
* systemd also accepts time specs, e.g. "2min 3s". That's extensively described in the man.
It is not possible. Systemd is noninteractive.
You can uncomment in /etc/systemd/system.conf
the lines:
DefaultTimeoutStartSec=90s
DefaultTimeoutStopSec=90s
And change the value to what you consider appropriate.