Package: openarena-server
Version: 0.8.5-10
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the
openarena-server init script.
diff -Nru openarena-0.8.5/debian/changelog openarena-0.8.5/debian/changelog
--- openarena-0.8.5/debian/changelog	2011-08-04 11:08:47.000000000 +0300
+++ openarena-0.8.5/debian/changelog	2011-10-29 16:35:54.000000000 +0300
@@ -1,3 +1,9 @@
+openarena (0.8.5-10.1) UNRELEASED; urgency=low
+
+  * Add support for "status" action to openarena-server init script
+
+ -- Peter Eisentraut <[email protected]>  Sat, 29 Oct 2011 16:35:27 +0300
+
 openarena (0.8.5-10) unstable; urgency=low
 
   [ Bruno "Fuddl" Kleinert ]
diff -Nru openarena-0.8.5/debian/openarena-server.init openarena-0.8.5/debian/openarena-server.init
--- openarena-0.8.5/debian/openarena-server.init	2011-08-04 11:08:47.000000000 +0300
+++ openarena-0.8.5/debian/openarena-server.init	2011-10-29 16:19:42.000000000 +0300
@@ -80,9 +80,12 @@
         q3_stop && sleep 1 && q3_start
         log_end_msg $?
 	;;
+    status)
+	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	;;
     *)
 	# echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $0 {start|stop|restart|force-reload}" >&2
+	echo "Usage: $0 {start|stop|restart|force-reload|status}" >&2
 	exit 1
 	;;
 esac

Reply via email to