From owner-freebsd-ports Mon May 28 2:27:10 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 1F13637B42C; Mon, 28 May 2001 02:27:07 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.3) id f4S9PO912042; Mon, 28 May 2001 11:25:24 +0200 (CEST) (envelope-from ernst) Date: Mon, 28 May 2001 11:25:24 +0200 From: Ernst de Haan To: OKAZAKI Tetsurou Cc: Peter Pentchev , ports@FreeBSD.ORG Subject: Re: No pre- or post-deinstall target? Message-ID: <20010528112524.A12023@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010528110932.A9375@c187104187.telekabel.chello.nl>; from ernst@jollem.com on Mon, May 28, 2001 at 11:09:32AM +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 Okay, I figured it out. > Hmm, I will need to stop the Orion server *before* all files in pkg-plist are > deleted, cause I will use the installed 'orionctl' script to stop the server. > This will also delete the PID file (/var/run/orion.pid)... I just wrote a simple pkg-deinstall file: #!/bin/sh PID_FILE=/var/run/orion.pid if [ -e ${PID_FILE} ]; then echo -n "Orion is still running." /bin/kill `cat ${PID_FILE}` rm -f ${PID_FILE} echo " Stopped." fi This works perfectly. Thanks again! /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