apt-cacher-ng init script does not work with tmpfs /var/run directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt-cacher-ng (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Bug Description
Binary package hint: apt-cacher-ng
If /var/run is mounted as tmpfs, apt-cacher-ng does not start on boot. The problem is line 37 of /etc/init.
rm -rf "$RUNDIR" || return 1
That directory does not exist on boot, so the script fails before starting the daemon. I suggest replacing this line with:
[ -d $RUNDIR ] && rm -rf "$RUNDIR" || return 1
Thanks!
@@ron
ProblemType: Bug
Architecture: amd64
Date: Tue Aug 24 14:44:40 2010
DistroRelease: Ubuntu 8.04
Package: apt-cacher-ng 0.1.9-1
PackageArchitec
ProcEnviron:
PATH=/
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: apt-cacher-ng
Uname: Linux 2.6.24-28-generic x86_64
Changed in apt-cacher-ng (Ubuntu): | |
importance: | Undecided → Medium |
status: | New → Triaged |
FWIW, I think I don't experience this problem in lucid, seems to be the old-by-now hardy package. The hardy package has quite a few problems. You may want to try the lucid version which I backported to hardy. It's available in my stable PPA.
https:/ /launchpad. net/~r0lf/ +archive/ stable