if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ]; then
    if [ -x "/usr/bin/svctl" ]; then
        # recompile since files are added
        svctl compile || true
        if ! svctl update; then
            echo "dh-s6: WARNING 'svctl update' failed. The message above names" >&2
            echo "dh-s6: WARNING the services that did not reach the wanted state." >&2
            echo "dh-s6: WARNING The package stays configured anyway: a hanging service" >&2
            echo "dh-s6: WARNING must not leave dpkg in 'iF' and block every further" >&2
            echo "dh-s6: WARNING package operation (rt-2.tick1, 22.09.2026). The s6" >&2
            echo "dh-s6: WARNING database is NOT up to date then:" >&2
            echo "dh-s6: WARNING fix the cause and run 'svctl update' again." >&2
        fi
    fi
fi
