Subject: Re: DEINSTALL scripts for daemon packages
To: David Brownlee <abs@netbsd.org>
From: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
List: tech-pkg
Date: 05/24/2001 16:09:48
On Thu, 24 May 2001, David Brownlee wrote:
> 	I'd suggest that pkg_delete call the status by default and refuse
> 	to delete if the daemon is running, and have an optional flag to
> 	pkg_delete to call 'stop' as needed.

First, let me say that I agree with Johnny that it's the admin's job of
ensuring a process is stopped before he removes files. 

That said, such policy things should be kept out of pkg_delete, and be
implemented in DEINSTALL scripts instead. 

Maybe think about how to know the location of the rc.d script. 
Also, what happens if a pkg comes with more than one rc.d script?
(see net/ucd-snmp)

Can of worms...

 - Hubert

-- 
Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>