View Categories

Shutdown Timeout on systemd

Table of Contents

SecureAnyBox5 Shutdown Timeout on systemd


When SecureAnyBox5 is running as a systemd service, the application receives a
SIGTERM signal during system shutdown and is given time to terminate gracefully.

If no service-specific timeout is configured, systemd uses the global setting
DefaultTimeoutStopSec. The upstream default value is 90 seconds:

DefaultTimeoutStartSec= and DefaultTimeoutStopSec= default to 90 s in the system manager
and 90 s in the user manager.

After the timeout expires, systemd forcibly terminates the service using SIGKILL.

SecureAnyBox5 does not define its own TimeoutStopSec value and therefore uses the system’s DefaultTimeoutStopSec setting.

The effective timeout configured for a particular SecureAnyBox5 service instance can be verified using:

systemctl show secureanybox5.service -p TimeoutStopUSec

Example output:

TimeoutStopUSec=1min 30s

This indicates that systemd will wait up to 90 seconds after sending SIGTERM before forcibly terminating the service.

Reference #

systemd-system.conf official documentation:

https://www.freedesktop.org/software/systemd/man/systemd-system.conf.html

Powered by BetterDocs