Service fails in Stop Timeout when configured with "Delegate=true" parameter
Issue
- Service is taking too much time to restart.
- There is a bug in service stopping when
Delegate=trueand kill mode is set toKillMode=mixedthensystemdwill send the signals (TERM to the main process and KILL to all other processes) but wait untilTimeoutStopSecoccurs for no reason and at the end it will report a failure despite no process is still living.
Environment
- Red Hat Enterprise Linux 8
- systemd-239-82.el8_10.2.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.