Package: iodine
Version: 0.6.0~rc1-6
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the init.d
script of iodine.
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+iodine (0.6.0~rc1-6.1) UNRELEASED; urgency=low
+
+  * Add support for "status" action to init.d script
+
+ -- Peter Eisentraut <pet...@debian.org>  Mon, 19 Dec 2011 19:25:59 +0200
+
 iodine (0.6.0~rc1-6) unstable; urgency=low
 
   * New patch: cmdline-r-u.patch. Due to a missing "break", -r causes -u to
--- a/debian/iodine.iodined.init
+++ b/debian/iodine.iodined.init
@@ -126,6 +126,9 @@
 		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
 	esac
 	;;
+  status)
+	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"
 	do_stop
@@ -145,7 +148,7 @@
 	esac
 	;;
   *)
-	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
 	exit 3
 	;;
 esac

Reply via email to