On Sat, 09 Nov 2002, Martin Godisch wrote: > 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?
No. See Joey's reply. But you certainly _can_ do so if you wish. > Should this be reported as a bug against debhelper? No :-) -- "One disk to rule them all, One disk to find them. One disk to bring them all and in the darkness grind them. In the Land of Redmond where the shadows lie." -- The Silicon Valley Tarot Henrique Holschuh