Subject: Re: DEINSTALL scripts for daemon packages
To: Gavan Fantom <gavan@coolfactor.org>
From: David Brownlee <abs@netbsd.org>
List: tech-pkg
Date: 05/24/2001 11:18:38
Thinking about it I have also done that on a number of occasions
and would value that option. Looks like at least three options
for pkg_delete.
- Fail if daemon running
- Stop daemon and then delete
- Just delete (maybe warn).
I'd suggest the first one should be the default, and there should
also be a way to select a different one from 'make update' :)
--
David/absolute -- www.netbsd.org: No hype required --
On Thu, 24 May 2001, Gavan Fantom wrote:
> 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.
>
> How about an optional flag to pkg_delete despite the daemon still running?
> It won't be guaranteed to DTRT then, but I found that at least with Apache
> I could pkg_delete, make && make install, apachectl restart and things
> Just Worked[tm]. It would seem a shame to lose this.
>
>