From owner-freebsd-ports@FreeBSD.ORG Wed Jun 4 21:23:20 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CDE2106567B for ; Wed, 4 Jun 2008 21:23:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with ESMTP id 0CD288FC1A for ; Wed, 4 Jun 2008 21:23:20 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 13741 invoked by uid 399); 4 Jun 2008 21:36:23 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 4 Jun 2008 21:36:23 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <484707B0.7030805@FreeBSD.org> Date: Wed, 04 Jun 2008 14:22:56 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.14 (X11/20080525) MIME-Version: 1.0 To: Miroslav Lachman <000.fbsd@quip.cz> References: <47E660A3.3050805@quip.cz> In-Reply-To: <47E660A3.3050805@quip.cz> X-Enigmail-Version: 0.95.6 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: portmaster and restarting of upgraded daemons X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2008 21:23:20 -0000 Miroslav Lachman wrote: > I am almost new to portmaster, so I got a question - is there any > possibility to restart installed services as in portupgrade with defined > BEFOREBUILD / BEFOREDEINSTALL / AFTERINSTALL? Or is there any future > plan to do so? It is annoying if I end up with some dead services after > upgrade just because I forgot to manualy do > /usr/local/etc/rc.d/some_daemon restart No such feature is planned at this time. > Next question - is there any documentation for portmaster.rc / > .portmasterrc? I can't find any documentation for it on the internet, > just some notices to search in portmaster script (source file) for > "while getopts", where variables are defined, but it is not usual way to > get documentation ;) Agreed, however at the moment I lack time to do a thorough job of this. I did add a note to the just-committed 2.3 man page to tell the user where to look though. I hope to update this for a future version. > And last question - /etc/portmaster.rc - is it realy right place > according to man hier? I would expect it in /usr/local/etc/portmaster.rc. You're absolutely right. I copied the code for this from mergemaster, and neglected to fix the path. I have added support for /usr/local/etc in version 2.3 and mentioned in the man page that /etc is deprecated. In the next version the presence of /etc/portmaster.rc will throw an error, and in the version after that it will be fatal. Thanks for your interest and suggestions! Doug -- This .signature sanitized for your protection