Subject: Re: DEINSTALL scripts for daemon packages
To: Hubert Feyrer <>
From: David Brownlee <>
List: tech-pkg
Date: 05/24/2001 15:25:56
On Thu, 24 May 2001, Hubert Feyrer wrote:

> On Thu, 24 May 2001, David Brownlee wrote:
> > 	By putting in in DEINSTALL you lose the ability to have
> > 	'check to see if it would be OK to remove this package'
> > 	functionality.
> Right. s/DEINSTALL/REQ/ (do we still support that?).
> >From pkg_delete(8):
>      If the package contains a require file (see pkg_create(1)), then this is
>      executed first as
>            require <pkg-name> DEINSTALL
>      (where pkg-name is the name of the package in question and DEINSTALL is a
>      keyword denoting that this is a deinstallation) to see whether or not de-
>      installation should continue.  A non-zero exit status means no, unless
>      the -f option is specified.

	Unless I'm missing something (always possible :) this locks us to
	one of the three choices:
		- ignore daemons on delete (where we are now)
		- fail with warning messages
		- shutdown daemons and proceed

		David/absolute		-- No hype required --