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

  • De Lancre@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    11 hours ago

    How do you configure this?

    Idealistically - you supposed to figure out what wrong with particular service that causing long shutdowns, by using: journalctl -b -1 -e or something like that. You can also use systemd-analyze blame to do the opposite and figure out what causing long startup.

    But if you a normal human being that doesn’t have weeks to figure out bugs on kernel level with AMDGPU power management, then there a simpler solution - you just need to lower timer. In file:

    /etc/systemd/system.conf

    Uncomment (remove #) this line and set it either in minutes or seconds:

    DefaultTimeoutStopSec=10s

    I really don’t understand why default is so high. Even on old and weak hardware shut down shouldn’t take too much time.