View Issue Details

IDProjectCategoryView StatusLast Update
0007393Rocky-Linux-9systemdpublic2024-07-11 18:54
ReporterJulian Patocki Assigned To 
PrioritylowSeveritytrivialReproducibilityalways
Status newResolutionopen 
Platformx86_64OSRocky LinuxOS Version9.4 (Blue Onyx)
Summary0007393: Systemd displays 'no limit' instead of timeout in sec on reboot
DescriptionEven though the 'DefaultTimeoutStopUSec' is set to 90 seconds, it is not being displayed in the message informing that the system waits for a system to stop: A stop job is running for Service ( 1s / no limit)
It also does not change if TimoutStopSec is being configured within a unit itself.
The timeout works correctly, only the message always displays 'no limit', instead of the acctual timeout value set.

initially reported on the forum: by Sameer:
https://forums.rockylinux.org/t/no-limit-on-systemd-stop-jobs/14983
Steps To ReproduceTo reproduce a small program in C that ignores signals can be compiled and than run as a systemd unit:

#include <unistd.h>
#include <signal.h>

void ignore_signal(int sig) {
}

int main() {
    struct sigaction sa;
    memset(&sa, 0, sizeof(sa));
    sa.sa_handler = SIG_IGN;
    sigaction(SIGINT, &sa, NULL);
    sigaction(SIGTERM, &sa, NULL);

    while (1)
        sleep(60);

    return 0;
}

/usr/lib/systemd/system/dummy.service
[Unit]
Description=Dummy Service that only waits for 60s
After=default.target

[Service]
Type=simple
ExecStart=/usr/local/bin/dummy
Restart=on-failure
RestartSec=5s

[Install]
WantedBy=multi-user.target

The reboot needs to be initiated from the console.
Tagsreboot, systemd, timeout
Attached Files
image.png (855 bytes)   
image.png (855 bytes)   

Activities

Issue History

Date Modified Username Field Change
2024-07-11 18:54 Julian Patocki New Issue
2024-07-11 18:54 Julian Patocki Tag Attached: reboot
2024-07-11 18:54 Julian Patocki Tag Attached: systemd
2024-07-11 18:54 Julian Patocki Tag Attached: timeout
2024-07-11 18:54 Julian Patocki File Added: image.png