File XtreemFS-1.3.1_xtreemos_fixes.patch of Package xtreemfs-1.3.1

diff -uNpr XtreemFS-1.3.1/etc/init.d/xtreemfs-dir XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-dir
--- XtreemFS-1.3.1/etc/init.d/xtreemfs-dir	2011-11-03 11:51:22.000000000 +0100
+++ XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-dir	2012-01-13 09:28:37.554000164 +0100
@@ -4,8 +4,8 @@
 # Provides:          xtreemfs-dir
 # Required-Start:    $network $remote_fs
 # Required-Stop:     $network $remote_fs
-# Default-Start:     3 4 5
-# Default-Stop:
+# Default-Start:     3 5
+# Default-Stop:      0 1 2 6
 # Short-Description: XtreemFS DIR
 # Description:       XtreemFS DIR. http://www.xtreemfs.org/
 ### END INIT INFO
@@ -88,7 +88,8 @@ stop() {
     if [ -f $PID_DS ]
     then
         echo -n "stopping XtreemFS Directory Service (DIR)..."
-        killproc -p $PID_DS java
+	# Launching command being "sudo -u xtreemfs java ...", proc command is "sudo" and not "java" on OpenSUSE
+        killproc -p $PID_DS sudo
 	echo
     fi
 
diff -uNpr XtreemFS-1.3.1/etc/init.d/xtreemfs-mrc XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-mrc
--- XtreemFS-1.3.1/etc/init.d/xtreemfs-mrc	2011-11-03 11:51:22.000000000 +0100
+++ XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-mrc	2012-01-13 09:32:19.105000111 +0100
@@ -6,8 +6,8 @@
 # Required-Stop:     $network $remote_fs
 # Should-Start:      xtreemfs-dir
 # Should-Stop:       $null
-# Default-Start:     2 3 4 5
-# Default-Stop:
+# Default-Start:     3 5
+# Default-Stop:      0 1 2 6
 # Short-Description: XtreemFS MRC
 # Description:       XtreemFS MRC. http://www.xtreemfs.org/
 ### END INIT INFO
@@ -89,7 +89,8 @@ stop() {
     if [ -f $PID_MRC ]
     then
         echo -n "stopping XtreemFS Metadata and Replica Catalog (MRC)..."
-        killproc -p $PID_MRC java
+	# Launching command being "sudo -u xtreemfs java ...", proc command is "sudo" and not "java" on OpenSUSE
+        killproc -p $PID_MRC sudo
 	echo
     fi
 
diff -uNpr XtreemFS-1.3.1/etc/init.d/xtreemfs-osd XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-osd
--- XtreemFS-1.3.1/etc/init.d/xtreemfs-osd	2011-11-03 11:51:22.000000000 +0100
+++ XtreemFS-1.3.1_patched/etc/init.d/xtreemfs-osd	2012-01-13 09:32:11.537000125 +0100
@@ -6,8 +6,8 @@
 # Required-Stop:     $network $remote_fs
 # Should-Start:      xtreemfs-dir
 # Should-Stop:       $null
-# Default-Start:     2 3 4 5
-# Default-Stop:
+# Default-Start:     3 5
+# Default-Stop:      0 1 2 6
 # Short-Description: XtreemFS OSD
 # Description:       XtreemFS OSD. http://www.xtreemfs.org/
 ### END INIT INFO
@@ -89,7 +89,8 @@ stop() {
     if [ -f $PID_OSD ]
     then
         echo -n "stopping XtreemFS Object Storage Device (OSD)..."
-        killproc -p $PID_OSD java
+	# Launching command being "sudo -u xtreemfs java ...", proc command is "sudo" and not "java" on OpenSUSE
+	killproc -p $PID_OSD sudo
 	echo
     fi
 
openSUSE Build Service is sponsored by