Bug#642184: init.d status support

2011-09-20 Thread Michael Vogt
On Tue, Sep 20, 2011 at 06:35:58AM +0300, Peter Eisentraut wrote:
 Package: unattended-upgrades
 Version: 0.72.3
 Severity: wishlist
 Tags: patch

Thanks for your bugreport and your patch.
 
 Here is a patch to add the status action to the init script.  Even
 though it's trivial, please consider including it so we can uniformly
 support the status action across all packages.

I applied this to my bzr tree and it will be part of the next upload.

Cheers,
 Michael



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#642184: init.d status support

2011-09-19 Thread Peter Eisentraut
Package: unattended-upgrades
Version: 0.72.3
Severity: wishlist
Tags: patch

Here is a patch to add the status action to the init script.  Even
though it's trivial, please consider including it so we can uniformly
support the status action across all packages.
diff -Nru unattended-upgrades-0.72.3/debian/changelog unattended-upgrades-0.72.3+nmu1/debian/changelog
--- unattended-upgrades-0.72.3/debian/changelog	2011-06-16 10:13:49.0 +0300
+++ unattended-upgrades-0.72.3+nmu1/debian/changelog	2011-09-20 06:27:24.0 +0300
@@ -1,3 +1,10 @@
+unattended-upgrades (0.72.3+nmu1) unstable; urgency=low
+
+  * debian/unattended-upgrade.init:
+- add support for status action
+
+ -- Peter Eisentraut pet...@debian.org  Tue, 20 Sep 2011 06:26:29 +0300
+
 unattended-upgrades (0.72.3) unstable; urgency=low
 
   * debian/rules:
diff -Nru unattended-upgrades-0.72.3/debian/unattended-upgrades.init unattended-upgrades-0.72.3+nmu1/debian/unattended-upgrades.init
--- unattended-upgrades-0.72.3/debian/unattended-upgrades.init	2011-03-04 14:15:27.0 +0200
+++ unattended-upgrades-0.72.3+nmu1/debian/unattended-upgrades.init	2011-09-20 06:26:24.0 +0300
@@ -26,9 +26,12 @@
   restart|force-reload)
 	# nothing
 	;;
+  status)
+	exit 0
+	;;
   *)
 N=/etc/init.d/$NAME
-echo Usage: $N {start|stop|restart|force-reload} 2
+echo Usage: $N {start|stop|restart|force-reload|status} 2
 exit 1
 ;;
 esac