if [ "$1" = "remove" ]; then
    if [ -x "/usr/bin/svctl" ]; then
        # recompile since files are removed
        svctl compile || true
        svctl update || true
    fi
fi
if [ "$1" = "remove" ] || [ "$1" = "purge" ] || [ "$1" = "abort-install" ]; then
    for unit in #UNITFILES#; do
        rm -f "/var/lib/dh-s6/enabled/$unit"
    done
fi
