File init-cleanup.patch of Package collectl

From: T.M Abraham <tabraham@suse.com>
Subject: init cleanup
Upstream: submitted

This patch does some cleanup of the init script for openSUSE.

* /var/lock/subsys is neither used or supported on openSUSE, so
  use is removed
* change $all to $ALL - both work, but $ALL is more correct
* don't insert collectl in runlevel 4, which is admin defined
  and therefore should not be used by distribution scripts

---

--- initd/collectl-suse.orig	2013-06-05 21:15:00.522844781 -0400
+++ initd/collectl-suse	2013-06-05 21:15:19.702843470 -0400
@@ -8,9 +8,9 @@
 #
 ### BEGIN INIT INFO
 # Provides:          collectl
-# Required-Start:    $all
-# Required-Stop:     $all
-# Default-Start:     2 3 4 5
+# Required-Start:    $ALL
+# Required-Stop:     $ALL
+# Default-Start:     2 3 5
 # Default-Stop:      0 1 6
 # Short-Description: Collectl monitors system performance.
 # Description:       Collectl is a light-weight performance monitoring
@@ -94,10 +94,7 @@
       if [ -f $PIDFILE ]; then
           echo -n "Shutting down $PNAME: "
           killproc -p $PIDFILE collectl
-	  RETVAL=$?
 	  rc_status -v
-          echo
-          [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$PNAME
       else
           echo "$PNAME not running"
       fi
openSUSE Build Service is sponsored by