From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1DvZve-0007qN-0d for garchives@archives.gentoo.org; Thu, 21 Jul 2005 12:13:30 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j6LCCZZD011008; Thu, 21 Jul 2005 12:12:35 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.194]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j6LCAb0o022975 for ; Thu, 21 Jul 2005 12:10:38 GMT Received: by zproxy.gmail.com with SMTP id i28so126347nzi for ; Thu, 21 Jul 2005 05:10:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=WBh7It2Sc/q5N2PThPM3lykHaq3FhXsqv/8/pmlv5lw+5K6JQRm3eFyrNVCq7aSIEOr0w38XwSiyM6RRlINtJvotjAxLJ+NI0htgfN7nB7RDpvYia3ZuHXSiszsVvzBVSIScfQlxM35zLEHmXu0UtP/UuAMaVZCrxKgvD2zD7A4= Received: by 10.36.154.10 with SMTP id b10mr916210nze; Thu, 21 Jul 2005 05:10:24 -0700 (PDT) Received: from ?192.168.1.10? ([24.30.171.44]) by mx.gmail.com with ESMTP id 22sm506221nzn.2005.07.21.05.10.23; Thu, 21 Jul 2005 05:10:24 -0700 (PDT) Message-ID: <42DF90B1.9030806@gmail.com> Date: Thu, 21 Jul 2005 05:10:25 -0700 From: Zac Medico User-Agent: Mozilla Thunderbird 1.0.5 (X11/20050719) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] upgrade's and rc-scripts References: <20050720215440.GD13808@exodus> <200507201823.15864.vapier@gentoo.org> In-Reply-To: <200507201823.15864.vapier@gentoo.org> Content-Type: text/plain; charset=ISO-8859-6; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 048b8fe3-7b77-4fe8-88a6-386a39bf5326 X-Archives-Hash: bd697355668bfa382689950ede1ae80e Mike Frysinger wrote: > On Wednesday 20 July 2005 05:54 pm, Brian D. Harring wrote: > >>Out of curiousity, has any put any thought into some automated method >>or hook for allowing restarting of rc-scripts on upgrade/re-emerge of >>a package? > > > such a completely automated thing is a bad idea ... detecting and warning > though isnt a bad idea ... too many issues such as config files may need to > be upgraded or maybe a config file was edited but admin doesnt want to > restart the service just yet, etc... > This could be an optional feature such as FEATURES="restartservices". The CONFIG_PROTECT functionality could remain as is. Portage could use a special ebuild variable to determine whether the previous and new ebuilds have compatible configuration file formats (similar to EAPI) and only restart the service if they are compatible. > this probably falls under the pkg_{pre,post}inst gathering code bug ... but at > the very end of an emerge process, i think that there should be a summary of > packages which were upgraded and have a running init script ... detecting > whether a given init script is running is trivial, just ask us base folk on > irc and we can point you in the right direction > -mike This feature could live happily alongside the other one. Zac -- gentoo-dev@gentoo.org mailing list