Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2001 00:26:38 +0200
From:      Ernst de Haan <ernst@jollem.com>
To:        Cyrille Lefevre <clefevre@redirect.to>
Cc:        OKAZAKI Tetsurou <okazaki@FreeBSD.ORG>, Peter Pentchev <roam@orbitel.bg>, ports@FreeBSD.ORG
Subject:   Re: No pre- or post-deinstall target?
Message-ID:  <20010529002638.A16801@c187104187.telekabel.chello.nl>
In-Reply-To: <vgmluu39.fsf@gits.dyndns.org>; from clefevre-lists@noos.fr on Mon, May 28, 2001 at 09:55:22PM %2B0200
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> <vgmluu39.fsf@gits.dyndns.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010529002638.A16801>