Re: dh_installinit and dpkg-reconfigure
On Sat, Nov 09, 2002 at 08:12:57 -0200, Henrique de Moraes Holschuh wrote:
> On Sat, 09 Nov 2002, 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?
>
> Well, I once proposed people to use invoke-rc.d restart for that. It
> is (now) defined to be stop if it is running. Then start it.
So you are suggesting not to use dh_installinit in this case and to
write 'invoke-rc.d restart' manually into postinst?
Should this be reported as a bug against debhelper?
Kind regards,
Martin
Reply to: