From owner-freebsd-current@FreeBSD.ORG Sun Nov 16 18:37:54 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 54A6E29A; Sun, 16 Nov 2014 18:37:54 +0000 (UTC) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask.apl.washington.edu", Issuer "troutmask.apl.washington.edu" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 196CA8C5; Sun, 16 Nov 2014 18:37:54 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.9/8.14.9) with ESMTP id sAGIbrFH036094 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 16 Nov 2014 10:37:53 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.9/8.14.9/Submit) id sAGIbrwo036093; Sun, 16 Nov 2014 10:37:53 -0800 (PST) (envelope-from sgk) Date: Sun, 16 Nov 2014 10:37:53 -0800 From: Steve Kargl To: Allan Jude Subject: Re: init(8) diagnostics? Message-ID: <20141116183753.GA36021@troutmask.apl.washington.edu> References: <20141116180733.GA35841@troutmask.apl.washington.edu> <5468EB84.2070309@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5468EB84.2070309@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Nov 2014 18:37:54 -0000 On Sun, Nov 16, 2014 at 01:23:00PM -0500, Allan Jude wrote: > On 2014-11-16 13:07, Steve Kargl wrote: > > In init(8), one finds under DIAGNOSISTICS > > > > "some processes would not die; ps axl advised." > > > > So, just how is one to actually run 'ps axl advised' as > > the message appears as init(8) is killing off the system? > > > > In this case 'advised' is not a literal part of the command, but rather, > it is suggesting that running 'ps axl' will show which process(es) are > still running, and those would be the ones that would not die. > > When this message comes up, how far through the shutdown are you? Does > it stall there for a while? or continue quickly? > Yes, I know that the message means that one should run 'ps axl'. The system is well beyond any hope of interactive commands at the console. It appears right after init(8) stops syslogd and before the 'stopping vnlru ... done.' message. I was hoping that I could put the command in /etc/shutdown.rc, but reading that script did not provide the insight needed to automatically run the command. It is somewhat surprising that init(8) does not give the PID(s) of the offending process(es). -- Steve