From owner-freebsd-ports@freebsd.org Tue Jun 27 18:12:06 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CAEDFD8D19B for ; Tue, 27 Jun 2017 18:12:06 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from anny.lostinspace.de (anny.lostinspace.de [IPv6:2001:608:a02::33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FE0D77BCE for ; Tue, 27 Jun 2017 18:12:06 +0000 (UTC) (envelope-from idefix@fechner.net) Received: from server.idefix.lan (aftr-185-17-205-21.dynamic.mnet-online.de [185.17.205.21]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: idefix@fechner.net) by anny.lostinspace.de (Postfix) with ESMTPSA id DA939B755C7 for ; Tue, 27 Jun 2017 20:12:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=fechner.net; s=default; t=1498587125; bh=KSUqkGcnGjnIXvwcd8kY5m1iopiGYLuEoepmJ7mfycc=; h=Subject:To:References:From:Date:In-Reply-To; b=AOLb8ECK7BNpp1S8rclM8fdp9Ablmipc2KGv8qGW0AcxXKRxHgxbB3dxKQg6jiBPd Fx75T45IX0jpGiTxMRQRF3Z2cvFd5spmTs8+PwNCyQztkx6UfmOvc5oIYgdL98AHL6 jHJJa/C88Dl48MU0RHsr9yY3wCgc4q0EVYpvFK0Y= Received: from [192.168.0.151] (aftr-185-17-205-21.dynamic.mnet-online.de [185.17.205.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by server.idefix.lan (Postfix) with ESMTPSA id 4FC80CD3301 for ; Tue, 27 Jun 2017 20:12:04 +0200 (CEST) Subject: Re: Should a package restart on upgrade itself To: freebsd-ports@freebsd.org References: <20170627163502.u2m4trqccbkri63j@ivaldir.net> <4aad148bce4cfc626dea0d31bd62be41@acheronmedia.com> From: Matthias Fechner Message-ID: Date: Tue, 27 Jun 2017 20:11:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <4aad148bce4cfc626dea0d31bd62be41@acheronmedia.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2017 18:12:06 -0000 Am 27.06.2017 um 18:50 schrieb Vlad K.: > Will this cover libraries as well? Eg. Libre/Open SSL upgrades, > restart all services that depend on it? > > Meanwhile, there's "lsop": thanks for this tool, that is indeed very helpful. Maybe it is a good idea if pkg collects the information from each package what should be restarted if: HANDLE_RC_SCRIPTS = true; is set. In this case it is the responsibility of the package maintainer to mark which service should be started if it was upgraded. And then do a single bulk restart operation at the end of the complete upgrade. Gruß Matthias -- "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." -- Rich Cook