Package: apt-cacher-ng
Version: 0.9.2-1
Severity: wishlist

Dear Maintainer,

Currently, apt-cacher-ng is stopped during `prerm` and started during
`postinst`.

For many daemons, downtime is acceptable since they are only used by the
local system, but proxies are designed for use by *other* systems, so
it would be much nicer if apt-cacher-ng would do *nothing* during
`prerm` and do a *restart* during `postinst`, in `upgrade` mode.

This will require carefully thinking about a lot of edge cases, but
there can be a *long* time between the `prerm` and the `postinst` if
there is more than a handful of packages being upgraded at once.

(remember that `dpkg` must call `fsync` a bazillion times in order to
not lose data, and `fsync` is extremely slow on modern filesystems)


Partial Workaround: when you notice an upgrade to apt-cacher-ng is
available, install *only* that first so it avoids all the time spent on
other packages.


-- Package-specific info:

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-debug
  APT policy: (600, 'testing-debug'), (600, 'testing'), (500, 
'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.4.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apt-cacher-ng depends on:
ii  adduser                3.114
ii  debconf [debconf-2.0]  1.5.59
ii  dpkg                   1.18.7
ii  init-system-helpers    1.33
ii  libbz2-1.0             1.0.6-8
ii  libc6                  2.22-9
ii  libgcc1                1:6.1.1-3
ii  liblzma5               5.1.1alpha+20120614-2.1
ii  libssl1.0.2            1.0.2h-1
ii  libstdc++6             6.1.1-3
ii  libsystemd0            229-6
ii  libwrap0               7.6.q-25
ii  zlib1g                 1:1.2.8.dfsg-2+b1

apt-cacher-ng recommends no packages.

Versions of packages apt-cacher-ng suggests:
ii  avahi-daemon  0.6.32~rc+dfsg-1
pn  doc-base      <none>
ii  libfuse2      2.9.6-1

-- Configuration Files:
/etc/apt-cacher-ng/security.conf [Errno 13] Permission denied: 
u'/etc/apt-cacher-ng/security.conf'

-- debconf information:
* apt-cacher-ng/gentargetmode: Set up now and update later
* apt-cacher-ng/tunnelenable: false
* apt-cacher-ng/cachedir:
* apt-cacher-ng/port: keep
* apt-cacher-ng/bindaddress: localhost
* apt-cacher-ng/proxy: keep

Reply via email to