From owner-freebsd-stable@FreeBSD.ORG Sat Jan 12 20:18:40 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id AB6C742D for ; Sat, 12 Jan 2013 20:18:40 +0000 (UTC) (envelope-from takeda@takeda.tk) Received: from chinatsu.takeda.tk (mail.takeda.tk [74.0.89.210]) by mx1.freebsd.org (Postfix) with ESMTP id 8B29981D for ; Sat, 12 Jan 2013 20:18:39 +0000 (UTC) Received: from localhost.takeda.tk (takeda-ws2.lan [10.0.0.3]) (authenticated bits=0) by chinatsu.takeda.tk (8.14.5/8.14.5) with ESMTP id r0CKIbwO048413 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sat, 12 Jan 2013 12:18:38 -0800 (PST) (envelope-from takeda@takeda.tk) Date: Sat, 12 Jan 2013 12:18:22 -0800 From: Derek Kulinski X-Priority: 3 (Normal) Message-ID: <201467687.20130112121822@takeda.tk> To: FreeBSD Subject: Determining which process needs to be restarted after update MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.97.6 at chinatsu.takeda.tk X-Virus-Status: Clean X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2013 20:18:40 -0000 Hello everyone, I personally really like OpenSuSE command which is: zypper ps What it does is it lists all processes that have files opened that currently don't exist (i.e. link count is 0). This helps tremendously in determining which processes need to be restarted after an update. Is there something similar for FreeBSD? I was thinking of using lsof +L1, but on FreeBSD that command is not capable of displaying names of files that were deleted, many entries returned are for example processes that have open sockets. It also does not list names of the deleted/replaced files. Is there a tool that is capable to do such task, or maybe some additional options to lsof? I'm not too familiar with it myself. -- Best regards, Derek mailto:takeda@takeda.tk -- Look out for #1. Don't step in #2 either.