File octopuslb.initd.patch of Package octopus-load-balancer

diff -U 3 -H -d -r -N -- octopuslb-1.14.orig/extras/octopuslb.initd octopuslb-1.14/extras/octopuslb.initd
--- octopuslb-1.14.orig/extras/octopuslb.initd	2011-11-29 01:37:00.000000000 +0300
+++ octopuslb-1.14/extras/octopuslb.initd	2014-04-08 05:22:48.546519035 +0300
@@ -3,12 +3,21 @@
 # octopus      Startup script for Octopus Load Balancer
 #
 # chkconfig: - 85 15
-# description: OctopusLB is a TCP/IP load balancer.
+# description: OctopusLB is a TCP/IP load balancer
 # processname: octopuslb-server
 # config: /etc/octopuslb
+### BEGIN INIT INFO
+# Provides:          octopuslb-server
+# Required-Start:    $syslog $network $remote_fs
+# Required-Stop:     $syslog $network $remote_fs
+# Default-Start:     3 5
+# Default-Stop:      0 1 2 6
+# Short-Description: Start and stop OctopusLB
+# Description:       OctopusLB is a TCP/IP load balancer
+### END INIT INFO
 
 # Source function library.
-. /etc/rc.d/init.d/functions
+. /lib/lsb/init-functions
 prog="octopuslb-server"
 
 RETVAL=0
@@ -19,7 +28,7 @@
         if [ -d /etc/octopuslb ] ; then
                 for i in `ls /etc/octopuslb/*.conf`; do
                         echo -n $"Starting OctopusLB using $i "
-                        daemon $prog -c $i
+                        start_daemon $prog -c $i
                         RETVAL=$?
                         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/octopuslb
                         echo
@@ -59,7 +68,9 @@
 	restart
 	;;
 status)
-        status $prog
+        echo -n "Checking for $prog: "
+        checkproc $prog
+        rc_status -v
         RETVAL=$?
         ;;
 
openSUSE Build Service is sponsored by