From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 22:05:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A3361065697 for ; Tue, 17 Aug 2010 22:05:36 +0000 (UTC) (envelope-from fbsd@dannysplace.net) Received: from mail-backup.dannysplace.net (mailgw.dannysplace.net [204.109.56.184]) by mx1.freebsd.org (Postfix) with ESMTP id DA08C8FC12 for ; Tue, 17 Aug 2010 22:05:35 +0000 (UTC) Received: from [203.206.171.212] (helo=[192.168.10.10]) by mail-backup.dannysplace.net with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.72 (FreeBSD)) (envelope-from ) id 1OlUIF-000IZv-GM for freebsd-questions@freebsd.org; Wed, 18 Aug 2010 08:06:04 +1000 Message-ID: <4C6B07A7.9000008@dannysplace.net> Date: Wed, 18 Aug 2010 08:05:27 +1000 From: Danny Carroll User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4C69D13F.9080404@dannysplace.net> <20100817032327.0349772b.freebsd@edvax.de> <84y6c6rnpp.fsf@shroyer.name> In-Reply-To: <84y6c6rnpp.fsf@shroyer.name> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Authenticated-User: danny X-Authenticator: plain X-Exim-Version: 4.72 (build at 12-Jul-2010 18:31:29) X-Date: 2010-08-18 08:06:03 X-Connected-IP: 203.206.171.212:62207 X-Message-Linecount: 50 X-Body-Linecount: 37 X-Message-Size: 2133 X-Body-Size: 1502 X-Received-Count: 1 X-Recipient-Count: 1 X-Local-Recipient-Count: 1 X-Local-Recipient-Defer-Count: 0 X-Local-Recipient-Fail-Count: 0 X-SA-Exim-Connect-IP: 203.206.171.212 X-SA-Exim-Mail-From: fbsd@dannysplace.net X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on damka.dannysplace.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.3.1 X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail-backup.dannysplace.net) Subject: Re: Upgrading ports while processes are running. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd@dannysplace.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 22:05:36 -0000 On 17/08/2010 12:13 PM, Mark Shroyer wrote: > On Tue, 17 Aug 2010 03:23:27 +0200, Polytropon wrote: >> At least, the step that wants to write will fail, and this will >> mostly be (finally) signaled by a make error. > That isn't to say you won't see any negative consequences from > overwriting a running port with a newer version. Hypothetically, you > might install a new Python including a new standard library, and if your > running (old) Python process tries to load one of its deleted modules > from disk something could break. Or not; I'm no expert on the ports > system, they might have some way of working around this. But as for a > pragmatic answer to your question, I err on the side of caution with > this stuff :) > Thanks for the info... I guess I can take this to read: The way install works, the binary files can be updated even though they are in use. Restart of the port (or it's deps in the case of libs) is required. If nothing is restarted, then the old process code happily resides in memory until it's no longer referenced. This can cause a problem with a dynamically loaded lib that is not the same version as expected. I wonder what happens when you upgrade a port, don't restart, then the following week upgrade it again.... hmmm. In any case I like the "restart the whole server" option after a major upgrade because if it works then I can essentially rule out the upgrade if I have to troubleshoot a problem at a later date. -D