[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dh_installinit and dpkg-reconfigure



On Sat, Nov 09, 2002 at 11:26:24 -0500, Joey Hess wrote:

> Martin Godisch wrote:
>
> > dh_installinit adds 'invoke-rc.d start' (or: init.d/package start) to
> > postinst, hence, after dpkg-reconfigure is run, postinst will try to
> > start an already running service, start-stop-daemon will fail, and the
> > daemon will not reload its new configuration.
> > 
> > What's the correct way to handle this?
> 
> Make sure that your daemon is stopped for upgrade in the prerm. Which
> debhelper also does by default.

I do not upgrade, dpkg-reconfigure doesn't call prerm...

Kind regards,

Martin



Reply to: