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

    • Sanguine@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      14
      ·
      18 days ago

      Maybe something I don’t know, but I send kill commands through btop all the time on a systemd based machine.

      • Ooops@feddit.org
        link
        fedilink
        arrow-up
        14
        ·
        18 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
            ·
            7 days 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.