Package: flumotion Version: 0.4.2-3.1 Severity: wishlist Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu hardy ubuntu-patch
flumotion needs /var/run/flumotion to store PID files and runtime informations. On some systems (e.g. Ubuntu), /var/run is mounted on a tmpfs and data is erased each time system stops or /var/run is remounted, so it could be useful to check if /var/run/flumotion exists and eventually create it if needed. In Ubuntu, we've applied the attached patch to achieve the following: * debian/flumotion.init: - Create /var/run/flumotion if it does not exist (LP: #241118). We thought you might be interested in doing the same. -- System Information: Debian Release: lenny/sid APT prefers intrepid APT policy: (500, 'intrepid') Architecture: i386 (i686) Kernel: Linux 2.6.18-6-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/dash
diff -u flumotion-0.4.2/debian/flumotion.init flumotion-0.4.2/debian/flumotion.init --- flumotion-0.4.2/debian/flumotion.init +++ flumotion-0.4.2/debian/flumotion.init @@ -23,6 +23,11 @@ DAEMON_ARGS="-d 3 -l $LOGFILE" SCRIPTNAME="/etc/init.d/$NAME" +if [ ! -d /var/run/flumotion ]; then + mkdir /var/run/flumotion + chown flumotion:flumotion /var/run/flumotion +fi + # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0