Package: apt-cacher-ng Version: 0.2.2-2 Severity: important Hello,
starting apt-cacher-ng a second time (heartbeat may do this, or a local
admin by accident), it removes the $RUNDIR, thus not being able to
stop apt-cacher-ng later.
The 2nd attempt fails of course (port is in use).
A simple fix should help:
do_start() {
if { kill -0 `cat $PIDFILE` && fuser $SOCKETFILE; } &>/dev/null; then
echo "$DESC already running"
exit 0
fi
...
}
I used "&&" to make sure we're checking the apt-cacher-ng and not
some other process using the PID for coincidence.
-- System Information:
Debian Release: 5.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apt-cacher-ng depends on:
ii adduser 3.110 add and remove users and groups
ii libbz2-1.0 1.0.5-1 high-quality block-sorting file co
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libfuse2 2.7.4-1.1 Filesystem in USErspace library
ii libgcc1 1:4.3.2-1.1 GCC support library
ii libstdc++6 4.3.2-1.1 The GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime
apt-cacher-ng recommends no packages.
apt-cacher-ng suggests no packages.
-- no debconf information
signature.asc
Description: Digital signature

