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

Re: dh_installinit and dpkg-reconfigure

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.

About 99% of the time a script is trying a start, it actually wants
a stop if it is already there, then start it again...

  "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

Reply to: