From owner-freebsd-questions@freebsd.org Thu Mar 10 13:13:35 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BD913ACBBEB for ; Thu, 10 Mar 2016 13:13:35 +0000 (UTC) (envelope-from steve@sohara.org) Received: from uk1mail2513.mymailbank.co.uk (UK1MAIL2513-PERMANET.IE.mymailbank.co.uk [217.69.47.44]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2AD1DF for ; Thu, 10 Mar 2016 13:13:34 +0000 (UTC) (envelope-from steve@sohara.org) Received: from smtp.lan.sohara.org (UnknownHost [88.151.27.41]) by uk1mail2513-d.mymailbank.co.uk with SMTP; Thu, 10 Mar 2016 13:13:04 +0000 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.86 (FreeBSD)) (envelope-from ) id 1ae0Ot-000Fml-Bv for freebsd-questions@freebsd.org; Thu, 10 Mar 2016 13:13:11 +0000 Date: Thu, 10 Mar 2016 13:13:11 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: Are system updates without reboots possible? Message-Id: <20160310131311.95dcd6c66c6dbf60339a2df0@sohara.org> In-Reply-To: <56E162B5.4010309@qeng-ho.org> References: <56E162B5.4010309@qeng-ho.org> X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.29; amd64-portbld-freebsd10.1) X-Clacks-Overhead: "GNU Terry Pratchett" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Mar 2016 13:13:35 -0000 On Thu, 10 Mar 2016 12:04:05 +0000 Arthur Chance wrote: > The latest security advisory on openssl contains the usual mantra > > "Restart all deamons using the library, or reboot the system." > > I usually just reboot but find myself wondering if there's a reliable > *automatic* way of identifying which running programs use any given > library (or set of libraries), and identify whether or not they're > daemons controlled by service(8). > > I suppose root could use ps and ldd to identify affected programs, but > this seems like brute force and I can't see how to tie into the > service(8) structure. > > Anybody got ideas on this? It could be useful for updating servers you'd > rather not reboot. You could just apply brute force and use service -R to restart all services or reboot if the update included a new kernel. Overkill but safe. -- Steve O'Hara-Smith