Re: last sometimes posts crash on reboot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 4 Dec 2019 13:44:42 +0530
Vikram Goyal <vikigoyal@xxxxxxxxx> wrote:

> Hi,
> 
> I am facing a peculiar issue where a system reboot sometimes & not
> always posts a crash in last output.
> 
> root     pts/0        Wed Dec  4 11:47   still logged in
> reboot   system boot  Wed Dec  4 11:30 - 11:57  (00:26)
> root     pts/0        Tue Dec  3 18:14 - crash  (17:16)
> reboot   system boot  Tue Dec  3 10:03 - 11:57 (1+01:53)
> root     pts/0        Mon Dec  2 18:03 - down   (15:56)
> reboot   system boot  Mon Dec  2 11:19 - 10:00  (22:40)
> root     pts/0        Sat Nov 30 17:22 - crash (1+17:57)
> reboot   system boot  Sat Nov 30 10:36 - 10:00 (2+23:24)
> root     pts/0        Fri Nov 29 17:35 - down   (16:56
> 
> I then created an alias - alias reboot='sync && sleep 3s && sync &&
> sleep 3s && /usr/bin/systemctl reboot'

[snip]

> journal entries do not show any errors, but it is recorded as crash in
> last since there's no entry of - shutdown system down - in last.
> 
> last records sometimes a proper shutdown, many times as crash even
> though the reboot is done similarly all the times.
> 
> What could be the issue or should I be concerned about it.

This sounds like a race condition.  Since systemd runs things in
parallel instead of in sequence, variations in processing time can run
things in different order each time.  If this means that dependencies
are stopped before the programs that depend on them, those programs
will crash.  That is what I think is happening here.  So, I would
consider this innocuous, a side effect of the way shutdown occurs.

However, this is just speculation, and I have no special knowledge that
indicates it is true.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux