From owner-freebsd-current@FreeBSD.ORG Sun Nov 16 20:59:26 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 BB942EE9; Sun, 16 Nov 2014 20:59:26 +0000 (UTC) Received: from mail-pa0-x22b.google.com (mail-pa0-x22b.google.com [IPv6:2607:f8b0:400e:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A87C8AA; Sun, 16 Nov 2014 20:59:26 +0000 (UTC) Received: by mail-pa0-f43.google.com with SMTP id kx10so658961pab.2 for ; Sun, 16 Nov 2014 12:59:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2k0WS/pPmM6hP5WwTyD8VqiQK3I/rEb2BvClUx2CY54=; b=hIH8IUPaWFAqAbocHNIlNPupJRcdauk+2fiVBzKQW2ZobHu8NegLph22KipsdFMaLr 10BlT6/MsR394AXMnL3Pl6YMZfjO/tM21fBqNvMRBX9Z1HBGrmKEK70Y63JBXTstwVa7 Xn2bcEFUOOVh7PfnkEFHUH9DkfRGL//pVDcbCyWMpHBzsvFcT1VoSS5teI1DO9wQ5tK4 fCvO1M6dxZ1WxnuLa6qltFqzbbFAwK2V3kTtCyS+Tqyn5rIQN5RMoTJhQMx06BFwNtL+ Dt3QVGbs41aGdcuwY8JiLy+NQ+TZh8nYfxGjlEN/k2ZvcLNV7Au66yiv/7JT2vqNpSwP 8zDg== MIME-Version: 1.0 X-Received: by 10.66.234.100 with SMTP id ud4mr25322446pac.36.1416171566186; Sun, 16 Nov 2014 12:59:26 -0800 (PST) Received: by 10.70.94.167 with HTTP; Sun, 16 Nov 2014 12:59:26 -0800 (PST) In-Reply-To: <20141116183753.GA36021@troutmask.apl.washington.edu> References: <20141116180733.GA35841@troutmask.apl.washington.edu> <5468EB84.2070309@freebsd.org> <20141116183753.GA36021@troutmask.apl.washington.edu> Date: Sun, 16 Nov 2014 14:59:26 -0600 Message-ID: Subject: Re: init(8) diagnostics? From: Adam Vande More To: Steve Kargl Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: "freebsd-current@freebsd.org" , Allan Jude 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 20:59:26 -0000 On Sun, Nov 16, 2014 at 12:37 PM, Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > 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). Or why doesn't it just run it automatically. -- Adam