Package: procps
Version: 1:3.2.7-2
Severity: minor
Tags: patch

Hi,

the attached patch changes the procps init.d script(s) to use lsb
logging functions.

Regards,
David
diff -ur ./procps-3.2.7.orig/debian/control ./procps-3.2.7/debian/control
--- ./procps-3.2.7.orig/debian/control  2006-08-28 00:06:34.000000000 +0200
+++ ./procps-3.2.7/debian/control       2006-08-28 00:11:34.000000000 +0200
@@ -7,7 +7,7 @@
 
 Package: procps
 Architecture: any
-Depends: ${shlibs:Depends}
+Depends: ${shlibs:Depends}, lsb-base (>= 3.0-10)
 Provides: watch
 Conflicts: watch, libproc-dev (<< 1:1.2.6-2), w-bassman (<< 1.0-3), 
procps-nonfree, pgrep (<< 3.3-5)
 Replaces: watch, bsdutils (<< 2.9x-1)
diff -ur ./procps-3.2.7.orig/debian/procps.sh ./procps-3.2.7/debian/procps.sh
--- ./procps-3.2.7.orig/debian/procps.sh        2006-08-28 00:06:34.000000000 
+0200
+++ ./procps-3.2.7/debian/procps.sh     2006-08-28 00:09:55.000000000 +0200
@@ -16,6 +16,7 @@
 # Closes #52839 for the boot-floppy people
 [ -r /etc/default/rcS ] || exit 0
 . /etc/default/rcS
+. /lib/lsb/init-functions
 
 PATH=/sbin:$PATH
 which sysctl > /dev/null || exit 0
@@ -27,18 +28,9 @@
                then
                        exit 0
                fi
-               if [ "$VERBOSE" = "yes" ]
-               then
-                      quiet=""
-                       echo "Start setting kernel variables via /proc..."
-               else
-                      quiet="-q"
-               fi
-               sysctl $quiet -p
-               if [ "$VERBOSE" = "yes" ]
-               then
-                       echo "Done setting kernel variables via /proc."
-               fi
+              log_action_begin_msg "Setting kernel variables"
+               sysctl -q -p
+              log_action_end_msg $?
                ;;
        stop)
                ;;
@@ -47,3 +39,4 @@
                exit 3
                ;;
 esac
+exit 0

Reply via email to