Package: anon-proxy Version: 00.05.38+20080527-1 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
On systems where /var/run is mounted on a tmpfs, files and directories placed there are erased at every reboot. anon-proxy creates a directory in /var/run too and it needs to be recreated each time. In Ubuntu, we've applied the attached patch to achieve the following: * debian/init.d: - Recreate /var/run/anon-proxy if not available. Ubuntu mounts /var/run under a tmpfs, so it will be erased each reboot (LP: #261799). Even if Debian is not affected at the moment, we thought you might be interested in doing the same for compatibility purposes. -- System Information: Debian Release: lenny/sid APT prefers intrepid APT policy: (500, 'intrepid') Architecture: i386 (i686) Kernel: Linux 2.6.27-2-generic (SMP w/1 CPU core) Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u anon-proxy-00.05.38+20080527/debian/init.d anon-proxy-00.05.38+20080527/debian/init.d --- anon-proxy-00.05.38+20080527/debian/init.d +++ anon-proxy-00.05.38+20080527/debian/init.d @@ -25,6 +25,12 @@ set -e +if [ ! -d /var/run/anon-proxy ] +then + mkdir /var/run/anon-proxy + chown anon-proxy:root /var/run/anon-proxy +fi + case "$1" in start) echo -n "Starting $DESC with: "