Package: calendarserver
Version: 2.4.dfsg-6
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the init.d
script of calendarserver.
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+calendarserver (2.4.dfsg-6.1) UNRELEASED; urgency=low
+
+  * Added support for "status" action to init.d script
+
+ -- Peter Eisentraut <pet...@debian.org>  Tue, 20 Dec 2011 19:20:49 +0200
+
 calendarserver (2.4.dfsg-6) unstable; urgency=low
 
   * Changed DataRoot from /var/run/caldavd/ to /var/lib/caldavd/
--- a/debian/calendarserver.init.d
+++ b/debian/calendarserver.init.d
@@ -65,6 +65,9 @@
 	    RET=1
 	fi
 	;;
+  status)
+	status_of_proc -p $RUNDIR$NAME.pid "$DAEMON" "$NAME" && exit 0 || exit $?
+	;;
   restart|force-reload)
 	#
 	#	If the "reload" option is implemented, move the "force-reload"
@@ -89,7 +92,7 @@
   *)
 	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|status|restart|force-reload}" >&2
 	exit 1
 	;;
 esac

Reply via email to