From owner-freebsd-questions@FreeBSD.ORG Mon Apr 20 19:36:06 2009 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 E46071065688 for ; Mon, 20 Apr 2009 19:36:06 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: from mail-qy0-f105.google.com (mail-qy0-f105.google.com [209.85.221.105]) by mx1.freebsd.org (Postfix) with ESMTP id A03528FC1D for ; Mon, 20 Apr 2009 19:36:06 +0000 (UTC) (envelope-from tajudd@gmail.com) Received: by qyk3 with SMTP id 3so1156256qyk.3 for ; Mon, 20 Apr 2009 12:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=SN0AY8EYcUkyPfg3sTR3qP9ULSrWO89WpfYQWagx/Wo=; b=WV0r0il9Y6hcx6zXn+XxhWzJ1zC2wjLZ0JU4x2xF4NC6Ub9h4+hdS4WWm6/L+TFhc9 SHYm9twLH4Nqzk4u7lXo+siKAvfmoKhQEIZCX6ffkWPI6Y4fuSSa4fN6m3gioer6Djp/ Oh+dsHuGFnXhISmXixkj+yfuBkAzOiVjmKL10= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=XCtgXZJ+2HK+KIRye/uORu2bpkmB0YsaDXrgtGAIrREca6asLuzoDAQxYMBQYjiUAs QvRGh3baa8B6/r7cpGjN2Wr2VR4k8CcFQfWEN57Nw3Ssn8y7LtU/dCGdv9Zrlz3q0XEW 5HpqKZI06pdkVENkpw8kKsjStFrqy5tPMhNrA= MIME-Version: 1.0 Received: by 10.220.75.199 with SMTP id z7mr6634100vcj.112.1240256165321; Mon, 20 Apr 2009 12:36:05 -0700 (PDT) In-Reply-To: References: From: Tim Judd Date: Mon, 20 Apr 2009 13:35:50 -0600 Message-ID: To: Tom Worster Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: portmaster -a on a live server X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Apr 2009 19:36:07 -0000 On Mon, Apr 20, 2009 at 12:47 PM, Tom Worster wrote: > though all i really need is mysql/apache/php i have about 100 ports > installed and portmaster -a takes a long time to complete (hour or two). > > so i'm wondering if i ought to be concerned about new binaries being > installed over the old ones on the disk while the old images are loaded and > running as daemons. > > instead of doing portmaster -a, is there any advantage to: > > portmaster -a -x mysql\-server -x apache > portmaster mysql\-server apache > reboot > > in order to minimize the time that the old servers are running while the > new > images are on the disk? > > tom > Matthew has reported that he's had success with ports automatically restarting themselves, whereas I've not seen that happen. I had started (abandoned now) a script that would dynamically ask the rc.d system if a package was running when it was time to install a new package, meaning that it needs to stop, install, and start the package during the upgrade process. Worked well, until I realized that lots of ports don't do much (if any) work until make install is called, then it will (of all things) download and install depenencies and itself. So while all the dependencies are being downloaded and installed, the original package that needed to be upgrade has not been running. On large upgrades for the sake of anything better to example, Xorg, KDE/Gnome, MySQL/PostgreSQL all were NOT running during the 'install' phase which should be quick. Instead due to the Makefile writing it was delaying the install and restart of the packages anywhere from minutes to hours (to days.. OpenOffice). I abandoned the project mostly because I found little things about the ports system that is invisible to most people, but when dealing with the ports system details, they were the sore thumb. Since then I've found portmanager/portmaster/portupgrade have improved so now it's time to improve their stuff in terms of patches and upgrades. YMMV, I just didn't see the success Matthew had. --Tim