Date: Mon, 28 May 2001 11:25:24 +0200 From: Ernst de Haan <ernst@jollem.com> To: OKAZAKI Tetsurou <okazaki@FreeBSD.ORG> Cc: Peter Pentchev <roam@orbitel.bg>, ports@FreeBSD.ORG Subject: Re: No pre- or post-deinstall target? Message-ID: <20010528112524.A12023@c187104187.telekabel.chello.nl> In-Reply-To: <20010528110932.A9375@c187104187.telekabel.chello.nl>; from ernst@jollem.com on Mon, May 28, 2001 at 11:09:32AM %2B0200 References: <20010528101937.A9039@c187104187.telekabel.chello.nl> <20010528113238.E8450@ringworld.oblivion.bg> <867kz1c1ln.wl@dolphin.be.to> <20010528110932.A9375@c187104187.telekabel.chello.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010528112524.A12023>