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:
- References:
- debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Craig Sanders <cas@taz.net.au>
- Re: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Guillem Jover <guillem@debian.org>
- Re: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Joey Hess <joeyh@debian.org>
- Re: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Guillem Jover <guillem@debian.org>
- Re: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Guillem Jover <guillem@debian.org>
- Re: Bug#471060: debhelper, start-stop-daemon -exec, and restarting daemons during upgrade
- From: Joey Hess <joeyh@debian.org>