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

Re: Bug#471060: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade



On Wed, 2008-05-07 at 17:03:37 -0400, Joey Hess wrote:
> If you actually try to make a package that uses -exec and restarts its
> deamon in the postinst, it doesn't work. Example:
> 
> http://kitenet.net/~joey/tmp/dictd_1.10.11.dfsg-2_i386.deb

> All good so far, but now try reinstalling:

[...]

> The init script uses this to test if it's running, and after dpkg replaces
> the binary it fails.
> 
> root@kodama:/home/joey/tmp>start-stop-daemon --start --quiet --pidfile /var/run/dictd.pid --exec /usr/sbin/dictd --test -v
> Would start /usr/sbin/dictd .

It fails because the preinst is unconditionally removing the pid file
on upgrade.

regards,
guillem


Reply to: