From nobody Tue Jun 23 09:10:12 2026 X-Original-To: freebsd-pkgbase@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gkzmk3VV1z6jhrl for ; Tue, 23 Jun 2026 09:10:14 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gkzmk2qtyz3Qg9; Tue, 23 Jun 2026 09:10:14 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782205814; 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=CpwBXxjWSw/sKkuNN/tTwAA2LXHjpFMWYOTlVFAW+pw=; b=B83Yshsz/bBka4gwpa8B911bAEFvN1PbWiGozcCkbEAiEiTxaTDWAmlG/SFx6Pld1d6Wk3 mFMX1caMlLnSC3n+peO5EfPdugC7WGpFxAe67Dcl97VdD3zrNlRBQVJJDkkst8znyWDMmE /qDPNR3hwCTqsgB5dw5kjkxSWZsBc4YAntHaOAzsgrKyzbUquYA6PqoXzKSF0YZa94GqNg h5MqFE+wCYO5Ot8H63pzwjCtJfGi1XWs2OUeTr3+qK6mmRxHu+64v93lp7aHlWjPiCNlGy ItAaKW7oW5HiHMH6DB3jB4bNxKqChPHnvVdHO3WOd7hYpLE9ZFNjbOs48dpVEA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782205814; a=rsa-sha256; cv=none; b=gdMFpvTEog180DdZqoXfvzRimRBpKaW633o/YFrcWQ0ZeaU8wGDyWFiNVK9V4X+R/xREWk CQ2kK+zyyPF4is1vZ4pbzRno68jqjMNgVQwy04OjsnDd0j9VBE70Mk2cUo42IvZtO8oKRl dwnknBW0TCAKR2zWJGmelCSy67SFTCfKtq1thMH5yUdfrLadnc5r3c6JEEIEsEalIyI+A1 0sFxFiR+FR5bgnropAwbn+QkLPvfb3jQF2ejW2l4Jbf127wsF09GZQElWV33AscCXU7bx6 f2mXhRcj0xQxv7ESDhyHvHLT6C94XAdWGMt6LH8+RkXrL8AxzJ2Ew4HUl9qvJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782205814; 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=CpwBXxjWSw/sKkuNN/tTwAA2LXHjpFMWYOTlVFAW+pw=; b=Qx+a8JjuA25xXaujGHquGr50X+aMDcJiUHzgzBCxmuhZ0hXz/3k6uc8R6egxzmfPdufQbS fJ9NpeG+pThUcOYvqs1XUOR0hBOgWSAqUnogmNGPO514b8FgWwobsSrphc8CfDdCzDMxg3 BsGmmZNxpHA5GC27EQR/PO9V0TIBvpFHu5chnBO/LKgv/2xWdbKq14idX4h5Lr2XpG5kOK teSc0N8AubWrdd51fr21jtTubIysn4J1nhii9gd5tpyuzwmJpsDPgR6D5QyEc4qGbSU7iv eEHx/SuvX9Ds6IZgNW9QBDaRCyVCwwPZ8tXwhDOMeMMrRe03Cp2JzVTXgaj6UA== Received: from ltc.des.dev (unknown [92.183.55.143]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4gkzmk07SqzyHh; Tue, 23 Jun 2026 09:10:13 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id A834650023; Tue, 23 Jun 2026 11:10:12 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Mike Cc: freebsd-pkgbase@FreeBSD.org Subject: Re: Moving to pkg-based in 15.1 ... In-Reply-To: <27027cff-3c3b-41c6-a45f-f5e76e673011@mgm51.com> (Mike's message of "Mon, 22 Jun 2026 17:48:32 -0400") References: <86a4sot2l4.fsf@ltc.des.dev> <27027cff-3c3b-41c6-a45f-f5e76e673011@mgm51.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Tue, 23 Jun 2026 11:10:12 +0200 Message-ID: <865x39r5aj.fsf@ltc.des.dev> List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mike writes: > Agreed. I have always restarted all daemons after an update, and did > a reboot when I saw some things updated that I knew needed an reboot > (e.g., kernel update). Here's a trick... You can use procstat -v to dump the memory map of any process, which will show you which binary and libraries it has loaded: $ procstat -v $$=20 PID START END PRT RES PRES REF SHD FLAG = TP PATH 91099 0x29bee374e000 0x29bee3759000 r-- 8 38 33 11 CN---= vn /bin/sh 91099 0x29bee3759000 0x29bee3777000 r-x 30 38 33 11 CN---= vn /bin/sh 91099 0x29bee3777000 0x29bee3778000 r-- 1 0 1 0 CN---= vn /bin/sh [...] 91099 0x29c706072000 0x29c7060f7000 r-- 78 332 662 274 CN---= vn /lib/libc.so.7 91099 0x29c7060f7000 0x29c706242000 r-x 240 332 662 274 CN---= vn /lib/libc.so.7 91099 0x29c706242000 0x29c70624c000 r-- 10 0 1 0 CN---= vn /lib/libc.so.7 91099 0x29c70624c000 0x29c706253000 rw- 7 0 1 0 CN---= vn /lib/libc.so.7 [...] 91099 0x49b7fa342000 0x49b7fa348000 r-- 6 29 525 137 CN---= vn /libexec/ld-elf.so.1 91099 0x49b7fa348000 0x49b7fa35f000 r-x 23 29 525 137 CN---= vn /libexec/ld-elf.so.1 91099 0x49b7fa35f000 0x49b7fa360000 r-- 1 0 1 0 CN---= vn /libexec/ld-elf.so.1 If any of these are replaced or deleted after the process starts, the connection between vnode and path is lost and procstat no longer displays the path: $ cp /bin/sh . $ ./sh $ procstat -v $$ | head -4 PID START END PRT RES PRES REF SHD FLAG = TP PATH 91107 0x1e80b9a00000 0x1e80b9a0b000 r-- 11 41 3 1 CN---= vn /home/des/sh 91107 0x1e80b9a0b000 0x1e80b9a29000 r-x 30 41 3 1 CN---= vn /home/des/sh 91107 0x1e80b9a29000 0x1e80b9a2a000 r-- 1 0 1 0 CN---= vn /home/des/sh $ rm -f ./sh $ procstat -v $$ | head -4 PID START END PRT RES PRES REF SHD FLAG = TP PATH 91107 0x1e80b9a00000 0x1e80b9a0b000 r-- 11 41 3 1 CN---= vn=20 91107 0x1e80b9a0b000 0x1e80b9a29000 r-x 30 41 3 1 CN---= vn=20 91107 0x1e80b9a29000 0x1e80b9a2a000 r-- 1 0 1 0 CN---= vn=20 So you can use something like this to list all processes which have an executable mapping where the original path is gone: # ps $(procstat -va | awk '$4 =3D=3D "r-x" && $NF =3D=3D "vn" { print $= 1 }') This will give you a better idea of what actually needs restarting than just guessing. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org