• Kairos@lemmy.today
      link
      fedilink
      arrow-up
      8
      ·
      2 hours ago

      (X time / 1:30) but the second time will be extended indefinitely for some fucking reason.

    • anon5621@lemmy.ml
      link
      fedilink
      arrow-up
      4
      ·
      2 hours ago

      Yes but no, u can in config file of systemd change timeout to 5,10 second or other number of seconds which u wish before it will kill it

    • RustyNova@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      1 hour ago

      My always plugged in HDD with bees on it does that. 1 minute to shutdown at least because there’s always some kind of extend read or dedupe that need a sync.

      … I brought this upon myself so I don’t have to complain.

      • realitaetsverlust@piefed.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        41 minutes ago

        I think that depends on the setting, I had situations where one of my docker containers took ages to shutdown and it would just say 00/02 00s but when it reached that limit, it would just go up.

        • TwilightKiddy@scribe.disroot.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          16 minutes ago

          Individual services can override the default 90 seconds timeout. But then you can override their override if you think you are smarter, of course.

      • Thorry@feddit.org
        link
        fedilink
        arrow-up
        8
        ·
        2 hours ago

        Well you say that, but I’ve seen the countdown go past and then reset to a higher number often.

        • TwilightKiddy@scribe.disroot.org
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          15 minutes ago

          I entrust you with this horror, go figure out what to blame.

          shutdown-analyze.sh
          #! /usr/bin/env bash
          shutdown_start=$(journalctl -b -1 -u systemd-logind --grep="System is (powering down|rebooting)" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP)
          shutdown_start=$((shutdown_start / 1000000))
          units=$(journalctl -b -1 --since=@$shutdown_start --output=cat --no-pager --output-fields=UNIT JOB_TYPE=stop CODE_FUNC=job_emit_start_message)
          
          for u in $units; do
              stopping_start=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_start_message _SYSTEMD_UNIT=init.scope)
              stopping_end=$(journalctl -b -1 --since=@$shutdown_start -u "$u" --output=cat --no-pager --output-fields=_SOURCE_REALTIME_TIMESTAMP JOB_TYPE=stop CODE_FUNC=job_emit_done_message _SYSTEMD_UNIT=init.scope)
              duration_human=$(systemd-analyze timespan $((stopping_end - stopping_start))us | tail -1 | sed 's/.*: //')
              printf "%s\t%10s %s\n" $((stopping_end - stopping_start)) "$duration_human" "$u"
          done | sort -rn | cut -f 2