Re: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
On Tue, 2008-05-06 at 12:49:31 +1000, Craig Sanders wrote:
> On April 26, joeyh wrote:
> > start-stop-daemon behaves as I described when -exec is used, as
> > documented on its man page. At least 1/3 of init scripts run it that
> > way, and would all instantly fail if debhelper were changed. (This
> > number seems to have gone down somewhat, it used to be nearer to 100%.)
> it also implies that a bug report needs to be filed against dpkg because
> 'start-stop-daemon -exec' doesn't properly cope with upgrades.
> it's entirely normal that an executable will be replaced during an
> it's also entirely normal that daemon packages will and should do a
> restart in the postinst rather than stop in prerm and start in postinst.
The test on <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471060#37>
seems bogus to me, as the original file would have been removed at
"postinst configure" time, and s-s-d should work then.