From owner-freebsd-ports@FreeBSD.ORG Tue Sep 19 07:50:25 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F395916A47C for ; Tue, 19 Sep 2006 07:50:24 +0000 (UTC) (envelope-from Hans.F.Nordhaug@hiMolde.no) Received: from sil.himolde.no (sil.hiMolde.no [158.38.83.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD7D43D45 for ; Tue, 19 Sep 2006 07:50:23 +0000 (GMT) (envelope-from Hans.F.Nordhaug@hiMolde.no) Received: from malle.himolde.no ([158.38.68.22]) by sil.himolde.no with InterScan Message Security Suite; Tue, 19 Sep 2006 09:50:45 +0200 Received: from harr.himolde.no (harr.hiMolde.no [158.38.68.20])by malle.himolde.no (8.12.11.20060308/8.12.8) with ESMTP id k8J7oLve028006for ; Tue, 19 Sep 2006 09:50:21 +0200 Received: from harr.himolde.no (localhost.localdomain [127.0.0.1])by harr.himolde.no (8.13.1/8.13.1) with ESMTP id k8J7oLeI027698for ; Tue, 19 Sep 2006 09:50:21 +0200 Received: (from nordhaug@localhost)by harr.himolde.no (8.13.1/8.13.1/Submit) id k8J7oKuj027697for freebsd-ports@freebsd.org; Tue, 19 Sep 2006 09:50:20 +0200 Date: Tue, 19 Sep 2006 09:50:20 +0200 From: "Hans F. Nordhaug" To: freebsd-ports@freebsd.org Message-ID: <20060919075020.GA27670@hiMolde.no> References: <450F7A78.5020007@gneto.com> <20060919074600.GA720@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <20060919074600.GA720@turion.vk2pj.dyndns.org> User-Agent: Mutt/1.4.1i X-imss-version: 2.042 X-imss-result: Passed X-imss-approveListMatch: *@*.no Subject: Re: portupgrade and starting servers after upgrade. 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: Tue, 19 Sep 2006 07:50:25 -0000 * Peter Jeremy [2006-09-19]: > On Tue, 2006-Sep-19 07:04:56 +0200, Martin Nilsson wrote: > >For instance every time I portupgrade dhcpd I have to remember to start > >it manually after the upgrade. As portupgrade knows how to stop the > >daemon before the upgrade it should also know how to start it afterwards. > > Stopping the daemon is easy: "/usr/local/etc/rc.d/.... stop". > Starting it afterwards is not quite as easy because, portupgrade > should restore the state of the daemon to the state prior to it > starting, not just start it automatically. (The administrator > may have manually stopped the daemon). Good point, but isn't it as easy to check the status before stopping it: "/usr/local/etc/rc.d/.... status"? You could even check the reported pid. If the status is in some way unclear to portupgrade, portupgrade could warn the user - "Service X not started again - unknown status". Or am I doing it too easy? Hans