<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -27,7 +27,6 @@ if [ ! -d /var/run/rivendell ]; then
     install --directory --mode 02775 --owner=&quot;$DAEMON_USER&quot; --group=&quot;$AUDIOGROUP&quot; /var/run/rivendell
 fi
 
-
 # Check if Rivendell daemons are started by init scripts or pam_rd.
 if [ &quot;$RUN_MODE&quot; != &quot;init.d&quot; ]; then
     exit 0
@@ -37,6 +36,11 @@ for daemon in $DAEMONS; do
     test -x /usr/bin/$daemon || exit 0
 done
 
+# Create run directory to store pid files .
+if [ ! -d $PIDDIR ]; then
+    install --directory --mode 02775 --owner=&quot;$DAEMON_USER&quot; --group=&quot;$AUDIOGROUP&quot; $PIDDIR
+fi
+
 function start() {
     echo -n &quot;Starting $LABEL:&quot;
     for daemon in $DAEMONS; do</diff>
      <filename>rivendell/debian/rivendell.init</filename>
    </modified>
    <modified>
      <diff>@@ -56,11 +56,6 @@ case &quot;$1&quot; in
             install --directory --mode 02775 --owner=&quot;$AUDIOUSER&quot; --group=&quot;$AUDIOGROUP&quot; &quot;$AUDIOROOT&quot;
         fi
 
-        # Create run directory to store pid files .
-        if [ ! -d /var/run/rivendell ]; then
-            install --directory --mode 02775 --owner=&quot;$AUDIOUSER&quot; --group=&quot;$AUDIOGROUP&quot; /var/run/rivendell
-        fi
-
         # Create log directory to store log files .
         #FIXME: better integrate with debconf  (debconf currently only has various log file paths).
         if [ ! -d /var/log/rivendell ]; then</diff>
      <filename>rivendell/debian/rivendell.postinst</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a5202be0361200b7d00e35abf7b5318b94f94468</id>
    </parent>
  </parents>
  <author>
    <name>Alban Peignier</name>
    <email>alban.peignier@free.fr</email>
  </author>
  <url>http://github.com/albanpeignier/rivendell-debian/commit/21c4261f9ab0230ccd0739ee82f1e1feb58e6716</url>
  <id>21c4261f9ab0230ccd0739ee82f1e1feb58e6716</id>
  <committed-date>2009-08-27T08:46:37-07:00</committed-date>
  <authored-date>2009-08-27T08:46:37-07:00</authored-date>
  <message>Create pid directory in init.d script to support ubuntu tmpfs in /var/run (reported by brownfox)</message>
  <tree>95bb0b4f00eaab5f3d9f25245db8c670a18ea61e</tree>
  <committer>
    <name>Alban Peignier</name>
    <email>alban.peignier@free.fr</email>
  </committer>
</commit>
