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

  • DaforLynx@lemmy.zip
    link
    fedilink
    English
    arrow-up
    1
    ·
    24 hours ago

    How do you configure this? I have often encountered minute-long restarts most of which was fixed by adding a service to kill the wine server on shutdown, but still it sometimes happens.

    • De Lancre@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      8 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.