[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#653124: marked as done (init.d status support)



Your message dated Wed, 21 Nov 2012 16:23:13 +0000
with message-id <E1TbD4z-0002Rs-HV@franck.debian.org>
and subject line Bug#602052: Removed package(s) from unstable
has caused the Debian Bug report #653124,
regarding init.d status support
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
653124: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653124
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: powernowd
Version: 1.00-1.1
Severity: wishlist
Tags: patch

Here is a patch to add support for the "status" action to the init.d
script of powernowd.
diff -u powernowd-1.00/debian/changelog powernowd-1.00/debian/changelog
--- powernowd-1.00/debian/changelog
+++ powernowd-1.00/debian/changelog
@@ -1,3 +1,9 @@
+powernowd (1.00-1.2) UNRELEASED; urgency=low
+
+  * Add support for "status" action to init.d script
+
+ -- Peter Eisentraut <petere@debian.org>  Fri, 23 Dec 2011 19:39:29 +0200
+
 powernowd (1.00-1.1) unstable; urgency=low
 
   * Non-maintainer upload.
diff -u powernowd-1.00/debian/control powernowd-1.00/debian/control
--- powernowd-1.00/debian/control
+++ powernowd-1.00/debian/control
@@ -7,7 +7,7 @@
 
 Package: powernowd
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, lsb-base
 Conflicts: cpudyn, cpufreqd
 Description: control cpu speed and voltage using 2.6 kernel interface
  This simple client controls CPU speed and voltage using the sysfs interface
diff -u powernowd-1.00/debian/init.d powernowd-1.00/debian/init.d
--- powernowd-1.00/debian/init.d
+++ powernowd-1.00/debian/init.d
@@ -23,6 +23,8 @@
 
 [ -f /etc/default/$NAME ] && . /etc/default/$NAME
 
+. /lib/lsb/init-functions
+
 set -e
 
 case "$1" in
@@ -43,6 +45,9 @@
 	start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
 	echo "$NAME."
 	;;
+  status)
+	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	;;
   restart|force-reload)
 	echo -n "Restarting $DESC: "
 	start-stop-daemon --stop --quiet --oknodo --exec $DAEMON
@@ -52,7 +57,7 @@
 	;;
   *)
 	N=/etc/init.d/$NAME
-	echo "Usage: $N {start|stop|restart|force-reload}" >&2
+	echo "Usage: $N {start|stop|status|restart|force-reload}" >&2
 	exit 1
 	;;
 esac

--- End Message ---
--- Begin Message ---
Version: 1.00-2+rm

Dear submitter,

as the package powernowd has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see http://bugs.debian.org/602052

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@debian.org.

Debian distribution maintenance software
pp.
Ansgar Burchardt (the ftpmaster behind the curtain)

--- End Message ---

Reply to: