• Martin Blix Grydeland's avatar
    systemd: Use 'mixed' kill mode · 3ba24a8e
    Martin Blix Grydeland authored
    When the killmode is 'process', only the mgt process is ever signalled
    by systemd. If that fails to exit within TimeoutStopSec, we may leave
    unresponsive processes till tearing themselves down. During a restart of
    the service, that could lead to the old cache process still holding onto
    resources like bound ports, preventing the new service from starting.
    
    With 'mixed' mode instead, first SIGTERM is sent to the mgt process only
    (found through its PID file), but all the processes in the group will be
    sent SIGKILL after TimeoutStopSec, and systemd will wait for them all to
    exit.
    Signed-off-by: 's avatarDridi Boukelmoune <dridi.boukelmoune@gmail.com>
    3ba24a8e
varnish.service 957 Bytes