Thread View: muc.lists.freebsd.hackers
1 messages
1 total messages
Started by Dag-Erling Smørgrav
Sun, 29 Nov 2026 13:38
Re: Reboot not rebooting - annoying problem
Author: Dag-Erling Smørgrav
Date: Sun, 29 Nov 2026 13:38
Date: Sun, 29 Nov 2026 13:38
51 lines
4206 bytes
4206 bytes
Mike Tancsa <mike@sentex.net> writes:
> Peter Eriksson <pen@lysator.lui.se> writes:
> > I’ve got an annoying problem with the ‘reboot’ command not rebooting
> > the system when I’m testing a new kernel on a server
> > (The server normally run FreeBSD 15.1-RELEASE-p7 but I’m testing
> > some stuff with a 15-STABLE kernel I’ve build myself).
> >
> > According to procstat something is blocking progress at:
> Not sure if its the same thing deeper down, but I noticed a lot of
> things blocking on pwait when going from 14.4 to 14.5. Its like pwait
> doesnt see that the daemon has indeed restarted ie. pwait 1234, but
> process 1234 is already gone.
In 14.5 / 15.2, wait_for_pids() in /etc/rc.subr uses pwait's new -r
option, which waits until the process has been reaped. This relies on
kernel support which did not exist in 14.4 / 15.1, so shutdown -r after
upgrading can hang if you didn't first reboot into the new kernel before
installing the new userland.
Without this change, restarting a service would sometimes fail because
the new process would see the zombie of its predecessor and refuse to
start (postfix was a frequent offender in that respect).
However, this is unrelated to Peter's problem, which appears to be that
`reboot -q` is stuck waiting for filesystems to sync, possibly because
running processes are continuously dirtying them.
I would like to draw Peter's attention to the final sentence of the
description of the -q option in the reboot(8) manual page:
-q The system is halted or restarted quickly and ungracefully, and
only the flushing of the file system cache is performed (if the
-n option is not specified). This option should probably not be
used.
The recommended way to reboot a FreeBSD system up to and including
FreeBSD 15.x is `shutdown -r`. Starting with FreeBSD 16.0, a plain
`reboot` will also perform a clean shutdown (stopping all services in
the correct order) while `fastboot` retains the semantics of pre-16.0
`reboot` (summarily kill all processes).
DES
--
Dag-Erling Smørgrav - des@FreeBSD.org
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads