Date: Sun, 7 Dec 2025 12:25:38 +0000 From: Roger Marsh <r.m@rmswch.plus.com> To: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Problem with shutdown via ssh at FreeBSD 15.0 Message-ID: <20251207122538.6a306616@opendev.home>
index | next in thread | raw e-mail
Hi Using ssh logins from an OpenBSD box throughout: I upgraded a test box from 14.2-p1 by 'freebsd-update fetch' and 'freebsd-update install' to 14.2-p7; then to 14.3-p5 by 'freebsd-update -r 14.3-RELEASE upgrade' and 'freebsd-update install' and 'reboot' and 'freebsd-update install' and 'reboot' and 'pkg upgrade' (pkg only) and 'pkg upgrade -q -y'; then to 15.0 by 'freebsd-update -r 15.0-RELEASE upgrade' and 'freebsd-update install' and 'reboot' and 'freebsd-update install' and 'reboot' and 'pkg-static upgrade -f -q -y' (interrupted by ^C when the 'running "pkg bootstrap -f" recommended' warning appeared) and 'pkg bootstrap -f' and 'pkg-static upgrade -f -q -y' and 'reboot' and 'freebsd-update install'. Now 'shutdown -r now' after ssh login to test box does not give the 'Connection to xxx closed by remote host' and 'Connection to xxx closed' messages when test box has shutdown and is starting to reboot. Instead 'connection reset' and 'broken pipe' messages appear after the reboot has completed. On a 14.3-p5 box the 'Connection ...' messages are given when the reboot has completed. On a 14.3 box the 'Connection ...' messages are given when the shutdown has completed and before the reboot starts. Is this the expected behaviour now? The script below demonstrates the situation after the upgrade. Script started on Sun Dec 7 11:08:37 2025 monitor$ uname OpenBSD monitor$ date Sun Dec 7 11:08:44 UTC 2025 monitor$ ssh david@d630i386 (david@d630i386) Password for david@test.home: Last login: Sun Dec 7 12:10:38 2025 from monitor.home FreeBSD 15.0-RELEASE (GENERIC) releng/15.0-n280995-7aedc8de6446 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://www.FreeBSD.org/lists/questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier To change this login announcement, see motd(5). "man firewall" will give advice for building a FreeBSD firewall using ipfw(8). -- David Scheidt <dscheidt@tumbolia.com> $ uname -a FreeBSD test.home 15.0-RELEASE FreeBSD 15.0-RELEASE releng/15.0-n280995-7aedc8de6446 GENERIC amd64 $ su Password: # shutdown -r now Shutdown NOW! shutdown: [pid 22290] # *** FINAL System shutdown message from david@test.home *** System going down IMMEDIATELY System shutdown time has arrived Read from remote host d630i386: Connection reset by peer Connection to d630i386 closed. client_loop: send disconnect: Broken pipe monitor$ date Sun Dec 7 11:10:33 UTC 2025 monitor$ monitor$ monitor$ monitor$ date Sun Dec 7 11:10:42 UTC 2025 monitor$ ssh david@chess1 Last login: Sun Dec 7 11:00:41 2025 from monitor FreeBSD 14.3-RELEASE-p5 GENERIC Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://www.FreeBSD.org/lists/questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier To change this login announcement, see motd(5). To see how much disk space is left on your UFS partitions, use df -h -- Dru <genesis@istar.ca> david@chess1:~ $ uname -a FreeBSD chess1.home 14.3-RELEASE-p5 FreeBSD 14.3-RELEASE-p5 GENERIC amd64 david@chess1:~ $ su Password: root@chess1:/home/david # shutdown -r now Shutdown NOW! shutdown: [pid 91021] root@chess1:/home/david # *** FINAL System shutdown message from david@chess1.home *** System going down IMMEDIATELY System shutdown time has arrived Connection to chess1 closed by remote host. Connection to chess1 closed. monitor$ date Sun Dec 7 11:11:43 UTC 2025 monitor$ monitor$ monitor$ monitor$ date Sun Dec 7 11:11:56 UTC 2025 monitor$ ssh david@freedev Last login: Sun Dec 7 11:05:04 2025 from monitor FreeBSD 14.3-RELEASE (GENERIC) releng/14.3-n271432-8c9ce319fef7 Welcome to FreeBSD! Release Notes, Errata: https://www.FreeBSD.org/releases/ Security Advisories: https://www.FreeBSD.org/security/ FreeBSD Handbook: https://www.FreeBSD.org/handbook/ FreeBSD FAQ: https://www.FreeBSD.org/faq/ Questions List: https://www.FreeBSD.org/lists/questions/ FreeBSD Forums: https://forums.FreeBSD.org/ Documents installed with the system are in the /usr/local/share/doc/freebsd/ directory, or can be installed later with: pkg install en-freebsd-doc For other languages, replace "en" with a language code like de or fr. Show the version of FreeBSD installed: freebsd-version ; uname -a Please include that output and any error messages when posting questions. Introduction to manual pages: man man FreeBSD directory layout: man hier To change this login announcement, see motd(5). Need to see the calendar for this month? Simply type "cal". To see the whole year, type "cal -y". -- Dru <genesis@istar.ca> $ s $ [Kuname -a FreeBSD freedev.home 14.3-RELEASE FreeBSD 14.3-RELEASE releng/14.3-n271432-8c9ce319fef7 GENERIC amd64 $ su Password: # shutdown -r now Shutdown NOW! shutdown: [pid 39177] # *** FINAL System shutdown message from david@freedev.home *** System going down IMMEDIATELY System shutdown time has arrived Connection to freedev closed by remote host. Connection to freedev closed. monitor$ date Sun Dec 7 11:12:35 UTC 2025 monitor$ exit Script done on Sun Dec 7 11:13:31 2025help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20251207122538.6a306616>
