Hi!

Attached is the package patch, a bit more improved now.

Log:
 * Fix creating the PID file bug. Closes: #443369
 * Modified the init script to use /lib/lsb/init-functions.
 * Added lsb-base to package dependencies.
 * Upgraded standards version to 3.7.3.
 * Optimized for faster shutdown by letting sendsigs kill the daemon at
   runlevel 0 and 6 instead of creating symlinks to init script in these
   runlevel's rc folders. This was accomplished by using the update-rc.d
   extension.

Thank you!
--- irqbalance-0.55/debian/changelog	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/changelog	2008-02-24 22:09:35.000000000 +0100
@@ -1,3 +1,17 @@
+irqbalance (0.55-2.2) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix creating the PID file bug. Closes: #443369
+  * Modified the init script to use /lib/lsb/init-functions.
+  * Added lsb-base to package dependencies.
+  * Upgraded standards version to 3.7.3.
+  * Optimized for faster shutdown by letting sendsigs kill the daemon at
+    runlevel 0 and 6 instead of creating symlinks to init script in these
+    runlevel's rc folders. This was accomplished by using the update-rc.d
+    extension.
+
+ -- Almir Dzinovic <[EMAIL PROTECTED]>  Sat, 24 Feb 2008 22:09:35 +0100
+
 irqbalance (0.55-2.1) unstable; urgency=low
 
   * Non-maintainer upload.
--- irqbalance-0.55/debian/control	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/control	2008-02-24 22:09:18.000000000 +0100
@@ -3,11 +3,11 @@ Section: utils
 Priority: extra
 Maintainer: Kyle McMartin <[EMAIL PROTECTED]>
 Build-Depends: cdbs, debhelper (>= 4.1.16), pkg-config, libglib2.0-dev, xutils-dev
-Standards-Version: 3.6.2.1
+Standards-Version: 3.7.3
 
 Package: irqbalance
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
+Depends: ${shlibs:Depends}, ${misc:Depends}, lsb-base (>= 3.0-6)
 Description: Daemon to balance interrupts for SMP systems
  Daemon to balance interrupts across multiple CPUs, which can lead to
  better performance and IO balance on SMP systems. This package is
--- irqbalance-0.55/debian/irqbalance.init	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/irqbalance.init	2008-02-24 01:33:25.000000000 +0100
@@ -37,31 +37,33 @@ if test "$ONESHOT" != "0"; then
     DOPTIONS="--oneshot"
 fi
 
+. /lib/lsb/init-functions
+
 case "$1" in
   start)
-        echo -n "Starting $DESC: "
+        log_begin_msg "Starting $DESC: $NAME"
         start-stop-daemon --start --pidfile $PIDFILE \
         	--name $PNAME --oknodo --startas $DAEMON \
             -- $OPTIONS $DOPTIONS
-        
-        echo "$NAME."
+        pidof $PNAME > $PIDFILE
+        log_end_msg $?
         ;;
   stop)
-        echo -n "Stopping $DESC: "
-        
+        log_begin_msg "Stopping $DESC: $NAME"
         start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME --oknodo
-        
-        echo "$NAME."
+        rm -f $PIDFILE
+        log_end_msg $?
         ;;
   restart|force-reload)
-        echo -n "Restarting $DESC: "
+        log_begin_msg "Restarting $DESC: $NAME"
         start-stop-daemon --stop --pidfile $PIDFILE --name $PNAME \
             --retry 5 --oknodo
+        rm -f $PIDFILE
         start-stop-daemon --start --pidfile $PIDFILE \
             --name $PNAME --oknodo --startas $DAEMON \
             -- $OPTIONS $DOPTIONS
-        
-        echo "$NAME."
+        pidof $PNAME > $PIDFILE
+        log_end_msg $?
         ;;
   *)
         N=/etc/init.d/$SNAME
--- irqbalance-0.55/debian/irqbalance.install	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/irqbalance.install	2008-02-24 01:33:25.000000000 +0100
@@ -1 +1 @@
-irqbalance usr/sbin/
\ No newline at end of file
+irqbalance usr/sbin/
--- irqbalance-0.55/debian/irqbalance.postinst	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/irqbalance.postinst	2008-02-24 01:33:25.000000000 +0100
@@ -38,4 +38,8 @@ if [ "$1" = "configure" ]; then
     db_stop
 fi
 
-#DEBHELPER#
\ No newline at end of file
+if dpkg --compare-versions "$2" le "0.55-2.2"; then
+   update-rc.d -f irqbalance remove
+fi
+
+#DEBHELPER#
--- irqbalance-0.55/debian/irqbalance.postrm	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/irqbalance.postrm	2008-02-24 01:33:25.000000000 +0100
@@ -6,4 +6,4 @@ if [ "$1" = "purge" ]; then
     rm -f "$CONF.tmp" "$CONF"
 fi
 
-#DEBHELPER#
\ No newline at end of file
+#DEBHELPER#
--- irqbalance-0.55/debian/rules	2008-02-24 01:34:30.000000000 +0100
+++ irqbalance-0.55/debian/rules	2008-02-24 01:39:26.000000000 +0100
@@ -5,3 +5,5 @@ include /usr/share/cdbs/1/rules/debhelpe
 
 ### from irqbalance Makefile
 CFLAGS=-g -Os -D_FORTIFY_SOURCE=2 -Wall -W `pkg-config --cflags glib-2.0`
+
+DEB_DH_INSTALLINIT_ARGS := -- start 20 2 3 4 5 . stop 80 1 .

Reply via email to