[Pkg-haproxy-maintainers] haproxy jessie package cannot be upgraded if init.d

Ghislain Adnet gadnet at aqueos.com
Wed Feb 1 17:42:41 UTC 2017


hi,

 we use the package for haproxy of the backports and we encounter issues
when we upgrade (here 1.5 to 1.7). The apt-get fail because haproxy runs
and the apt script  say:

if [ -x "/etc/init.d/haproxy" ]; then
       update-rc.d haproxy defaults >/dev/null
       invoke-rc.d haproxy start || exit $?
fi


as haproxy runs allready it ends with:

[....] Starting haproxy: haproxy/usr/sbin/haproxy already running.
failed!
invoke-rc.d: initscript haproxy, action "start" failed.
dpkg: error processing package haproxy (--configure):


because it is allready running. therefor we must do a manual stop then
upgrade do you think that could be changed with something like this (in
sh syntax)

update-rc.d haproxy defaults >/dev/null
invoke-rc.d haproxy status >/dev/null && {
        invoke-rc.d haproxy restart >/dev/null || exit $?
} || {
        invoke-rc.d haproxy start   >/dev/null || exit $?
}


Thanks for your work and best regards,

Ghislain.
AQUEOS.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-haproxy-maintainers/attachments/20170201/7cd2302e/attachment.html>


More information about the Pkg-haproxy-maintainers mailing list