Service fails in Stop Timeout when configured with "Delegate=true" parameter

Solution Verified - Updated -

Issue

  • Service is taking too much time to restart.
  • There is a bug in service stopping when Delegate=true and kill mode is set to KillMode=mixedthen systemd will send the signals (TERM to the main process and KILL to all other processes) but wait until TimeoutStopSec occurs 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content