Package: polipo
Version: 1.0.4.1-1.1
Followup-For: Bug #609294

Here is a patch for this.
diff -u polipo-1.0.4.1/debian/init.d polipo-1.0.4.1/debian/init.d
--- polipo-1.0.4.1/debian/init.d
+++ polipo-1.0.4.1/debian/init.d
@@ -21,6 +21,8 @@
 NAME=polipo
 DESC=polipo
 
+. /lib/lsb/init-functions
+
 # Include polipo defaults if available
 #if [ -f /etc/default/polipo ] ; then
 #	. /etc/default/polipo
@@ -68,10 +70,13 @@
         $PPCTL start
 	echo "$NAME."
 	;;
+  status)
+	status_of_proc -p /var/run/polipo/polipo.pid /usr/bin/polipo "$NAME" && exit 0 || exit $?
+	;;
   *)
 	N=/etc/init.d/$NAME
 	# echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	echo "Usage: $N {start|stop|restart|force-reload|status}" >&2
 	exit 1
 	;;
 esac
diff -u polipo-1.0.4.1/debian/changelog polipo-1.0.4.1/debian/changelog
--- polipo-1.0.4.1/debian/changelog
+++ polipo-1.0.4.1/debian/changelog
@@ -1,3 +1,9 @@
+polipo (1.0.4.1-1.2) UNRELEASED; urgency=low
+
+  * Add support for "status" action to init script (closes: #609294)
+
+ -- Peter Eisentraut <[email protected]>  Fri, 28 Oct 2011 19:09:00 +0300
+
 polipo (1.0.4.1-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u polipo-1.0.4.1/debian/control polipo-1.0.4.1/debian/control
--- polipo-1.0.4.1/debian/control
+++ polipo-1.0.4.1/debian/control
@@ -8,7 +8,7 @@
 
 Package: polipo
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base
 Description: a small, caching web proxy
  Polipo is a caching web proxy (a web cache) designed to be used by one
  person or a small group of people. It is similar in spirit to WWWOFFLE, but

Reply via email to