Needs /var/run/polipo directory

Bug #40818 reported by auspex
4
Affects Status Importance Assigned to Milestone
polipo (Ubuntu)
Fix Released
Medium
MOTU
Nominated for Dapper by Carey Underwood

Bug Description

polipo fails to start because /var/run is on a tmpfs filesystem, and it can't create the default pid file.

It either needs to make sure /var/run/polipo is created in the init script, or move the pid file to /var/run/

Revision history for this message
Dennis Kaarsemaker (dennis) wrote : Re: [Bug 40818] Needs /var/run/polipo directory

diff -Nur polipo-0.9.8/debian/init.d polipo-0.9.8.new/debian/init.d
--- polipo-0.9.8/debian/init.d 2006-04-22 22:51:48.000000000 +0200
+++ polipo-0.9.8.new/debian/init.d 2006-04-22 22:50:42.000000000
+0200
@@ -24,6 +24,9 @@
 # . /etc/default/polipo
 #fi

+# Make sure /var/run/polipo exists since /var/run is now on a tmpfs
+if [ ! -e /var/run/polipo ]; then mkdir -p /var/run/polipo; fi
+
 case "$1" in
   start)
        echo -n "Starting $DESC: "

Changed in polipo:
assignee: nobody → motu
Revision history for this message
auspex (auspex) wrote :

Stunning, Dennis! I _was_ planning to see if I could work this out myself today. Thanks a lot!

Revision history for this message
Chuck Short (zulcss) wrote :

Fix uploaded, Dennis thanks for the patch.

Changed in polipo:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.