reupload because i mixed up sigterm and sigkill like a dumb fuck

  • Ooops@feddit.org
    link
    fedilink
    arrow-up
    14
    ·
    12 days ago

    The point here is that SystemD’s natural behavior is to send SIGTERM then wait an eternity.

    Those “service XY is shutting down (5sec/2min)” messages you sometimes get on shutdown are coming from SystemD not waiting for 3 seconds like the meme suggests, but waiting for minutes before giving up and switching over to SIGKILL instead.

      • Ooops@feddit.org
        link
        fedilink
        arrow-up
        2
        ·
        20 hours ago

        There is the option to explicitly set DefaultTimeoutStartSec and DefaultTimeoutStopSec per systemd service.

        If you don’t specify it in a service file, the default values from /etc/systemd/system.conf (both set to 90s) will be used, so you can change those values to 30s, too, to affect all services (that don’t have their limit set explicitly) globally.