Re: [SPAM] Re: gap: journalctl vs ps

felix via gull <gull-04vmY7CpswVinyhjFObuvR+/[email protected]>
Newsgroups gmane.org.user-groups.gull.general
Message-ID <Y/[email protected]>
Alors non:
J'ai un gap immédiatement après avoir booté!

  initSeconds() { 
      sdtext=(before after)
      { read -r kstart
        read -r sstart ;} < <(
          date -f <(LC_ALL=C journalctl -k -b -0 |
              sed -e "2{s/$HOSTNAME.*//;q};d"
          LC_ALL=C ps ho lstart 1) +%s
      )
      sdiff=$((sstart-kstart))
      printf 'Kernel : %(%a %d %b %T)T\nSystemd: %(%a %d %b %T)T (%s" %s)\n' \
          $kstart $sstart ${sdiff#-} ${sdtext[sdiff>0]}
  }
  sudo bash < <(declare -f initSeconds;echo initSeconds)
ou
  ssh target sudo bash < <(declare -f initSeconds;echo initSeconds)

Interrogé le ven 24 fév 2023 18:48:50 CET, soit entre 13 et 21 secondes
après le boot:
  Kernel : Fri 24 Feb 18:48:37
  Systemd: Fri 24 Feb 18:48:29 (8" before)
Il s'agit d'un APU2.

Je pense qu'il s'agit d'un bug (systemd: 247.3-7+deb11u1).
Si vous avec une version plus récente (ubuntu) et que vous ne
voyez pas systemd démarrer avant le kernel, manifestez-vous!

-- 
 Félix Hauri  -  <[email protected]>  -  http://www.f-hauri.ch

_______________________________________________
gull mailing list
[email protected]
https://forum.linux-gull.ch/mailman/listinfo/gull
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.