Article View: muc.lists.freebsd.hackers
Article #120Re: Reboot not rebooting - annoying problem
From: 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
Technical Details
Message-ID:
<86bj77bvvj.fsf@ltc.des.dev>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<5d007cfe-1f45-4ab0-99a6-c34ab1a96847@sentex.net> <>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Dag-Erling Smørgrav <des@FreeBSD.org> Newsgroups: muc.lists.freebsd.hackers Subject: Re: Reboot not rebooting - annoying problem Date: Sun, 29 Nov 2026 14:38:40 +0100 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <86bj77bvvj.fsf@ltc.des.dev> References: <5d007cfe-1f45-4ab0-99a6-c34ab1a96847@sentex.net> <> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="91699"; mail-complaints-to="news-admin@muc.de" User-Agent: Gnus/5.13 (Gnus v5.13) X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795959528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3I/xQNY9kMkDePsEENNF+nBC+6oqR1udSo/He4GEVgI=; b=nCBjEvlTCI8QFEdUsHCqfoWc6axjpdvBfb8mNPIUFDeguQlBE7ypCF55rm5DNmAiEdRtue AdFPIjN0Eg6rP5Ik+w2wIeAASEaG2tqMaKz1qWzo16wLgkTi9QF2CLsM0e94NFuePl/Uzb g4i/b5E8NF07b59/6APJH4Lceuhoib2oOVJYy+68W8v7Jlerhrj1B/imXUfRtzXPrEayFY ceBrZR4KdQs2hlDkN8+Rg8TROCzsx27FBSpD/1VxS9WRIqnpfzHAMdG+MYdm/HFMe0ycsW zQr+qVCc+GXRKHYeoWRkMtWcJQSrVmtHerjarY4/NRupJrognBJvQRX99t5oTg== In-Reply-To: <5d007cfe-1f45-4ab0-99a6-c34ab1a96847@sentex.net> Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes