From owner-freebsd-ports Mon May 28 15:31: 0 2001 Delivered-To: freebsd-ports@freebsd.org Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id 4E65137B423; Mon, 28 May 2001 15:30:51 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.3) id f4SMQck16813; Tue, 29 May 2001 00:26:38 +0200 (CEST) (envelope-from ernst) Date: Tue, 29 May 2001 00:26:38 +0200 From: Ernst de Haan To: Cyrille Lefevre Cc: OKAZAKI Tetsurou , Peter Pentchev , ports@FreeBSD.ORG Subject: Re: No pre- or post-deinstall target? Message-ID: <20010529002638.A16801@c187104187.telekabel.chello.nl> References: <20010528101937.A9039@c187104187.telekabel.chello.nl> <20010528113238.E8450@ringworld.oblivion.bg> <867kz1c1ln.wl@dolphin.be.to> <20010528110932.A9375@c187104187.telekabel.chello.nl> <20010528112524.A12023@c187104187.telekabel.chello.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from clefevre-lists@noos.fr on Mon, May 28, 2001 at 09:55:22PM +0200 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Cyrille, > this could be done using @unexec at the beginning of the pkg-plist file > such as : > > @unexec [ -e /var/run/orion.pid ] && { echo killing orion.; kill `cat /var/run/orion.pid`; rm -f /var/run/orion.pid; } What would be the advantage of this? Isn't the pkg-deinstall the better approach since it is simple and easy to grasp? > an alternative would be to use killall such as : > > @unexec echo killing orion.; killall orion; rm -f /var/run/orion.pid Nah, in this case it won't work, since the name of the process is `java', not `orion' :) Thanks for the suggestions. Ernst -- Ernst de Haan Java Architect Jollem Information Technology "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message