[Lsb-messages] /var/www/bzr/lsb/devel/puppet-lsb r38: Fixes to init script for sobby.

Jeff Licquia licquia at linuxfoundation.org
Mon Jan 23 01:02:04 UTC 2012


------------------------------------------------------------
revno: 38
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: puppet-lsb
timestamp: Sun 2012-01-22 20:02:04 -0500
message:
  Fixes to init script for sobby.
modified:
  modules/sobby/files/sobby.init
  modules/sobby/manifests/init.pp
-------------- next part --------------
=== modified file 'modules/sobby/files/sobby.init'
--- a/modules/sobby/files/sobby.init	2012-01-23 00:41:00 +0000
+++ b/modules/sobby/files/sobby.init	2012-01-23 01:02:04 +0000
@@ -11,8 +11,6 @@
 #                    sobby is the server which provides gobby connectivity
 ### END INIT INFO
 
-set -e
-
 PRG=sobby
 DAEMON=/usr/bin/$PRG
 PIDFILE=/var/run/$PRG.pid
@@ -20,20 +18,18 @@
 
 test -x $DAEMON || exit 0
 
-. /etc/rc.d/init.d/functions
-
 case "$1" in
   start)
     echo -n "Starting $PRG: "
-    daemon --pidfile=$PIDFILE $DAEMON $OPTIONS
+    $DAEMON $OPTIONS > /tmp/sobby.log 2>&1 &
     RETVAL=$?
-    echo
+    echo "done"
     ;;
   stop)
     echo -n "Stopping $PRG: "
-    killproc -p $PIDFILE $DAEMON
+    killall $DAEMON
     RETVAL=$?
-    echo
+    echo "done"
     ;;
 esac
 

=== modified file 'modules/sobby/manifests/init.pp'
--- a/modules/sobby/manifests/init.pp	2012-01-23 00:41:00 +0000
+++ b/modules/sobby/manifests/init.pp	2012-01-23 01:02:04 +0000
@@ -8,6 +8,7 @@
 
     file { "/etc/init.d/sobby":
         source => "puppet:///modules/sobby/sobby.init",
+        mode   => 0755,
     }
 
     service { "sobby":



More information about the lsb-messages mailing list