From owner-freebsd-ports@FreeBSD.ORG Thu Oct 27 10:24:19 2011 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 22BE3106567A for ; Thu, 27 Oct 2011 10:24:19 +0000 (UTC) (envelope-from tingox@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id CF9A78FC13 for ; Thu, 27 Oct 2011 10:24:18 +0000 (UTC) Received: by vws11 with SMTP id 11so3433754vws.13 for ; Thu, 27 Oct 2011 03:24:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=5rK5X8shlK01OC1N5mAa/4f3TcIxuCPuKxo8FaMq0UI=; b=a2WpAm69uh1I3XXKYLgsXDwdIUPa/WFXECbdQWZT37tmjorOk76fM1qfDO0ghcO7sZ Cri85+aXiUxckj7FRs0X6KrkG9PT6eDju7lSYCJbalallYIwbWJ982PKHdSVb0otv2oR y0MMBjPqiJlxEL85OQJKoYds29Sz/4GUsk8rM= MIME-Version: 1.0 Received: by 10.52.67.178 with SMTP id o18mr881422vdt.68.1319711057939; Thu, 27 Oct 2011 03:24:17 -0700 (PDT) Received: by 10.52.111.99 with HTTP; Thu, 27 Oct 2011 03:24:17 -0700 (PDT) In-Reply-To: <20111027091500.GM63910@hoeg.nl> References: <20111027091500.GM63910@hoeg.nl> Date: Thu, 27 Oct 2011 12:24:17 +0200 Message-ID: From: Torfinn Ingolfsen To: FreeBSD Ports ML Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: ports/162049: The Ports tree lacks a framework to restart services 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: Thu, 27 Oct 2011 10:24:19 -0000 hello On Thu, Oct 27, 2011 at 11:15 AM, Ed Schouten wrote: > =A0 =A0 =A0 =A0We know exactly which ports install rc scripts (USE_RC_SUB= R). > =A0 =A0 =A0 =A0Why not run `/usr/local/etc/rc.d/${FOO} status' and > =A0 =A0 =A0 =A0`/usr/local/etc/rc.d/${FOO} stop' prior to installation. B= ased > =A0 =A0 =A0 =A0on the return value of the first, we can run > =A0 =A0 =A0 =A0`/usr/local/etc/rc.d/${FOO} start' after installation. Here is a link to the PR, for people who want it easy: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D162049 Shouldn't you be using 'service FOO stop' instead? See service(8). Personally, I prefer the port upgrade process to NOT touch my running services at all. In cases where it can't be avoided, I'm prepared to manually handle services that needs to be restarted after an upgrade. As you probably are aware of already, there are also security concerns with automatically starting a newly installed version of a program. I'm only running FreeBSD for my personal use, on a limited number of machin= es. If I was working with a larger number of machines, or needed an automated solution, I would look into tools like sysutils/cfengine3 HTH --=20 Regards, Torfinn Ingolfsen