SOURCES: flumotion.init - more PLD-like

qboosh qboosh at pld-linux.org
Tue Jul 15 20:33:26 CEST 2008


Author: qboosh                       Date: Tue Jul 15 18:33:26 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- more PLD-like

---- Files affected:
SOURCES:
   flumotion.init (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: SOURCES/flumotion.init
diff -u SOURCES/flumotion.init:1.1 SOURCES/flumotion.init:1.2
--- SOURCES/flumotion.init:1.1	Tue Jul 15 18:31:26 2008
+++ SOURCES/flumotion.init	Tue Jul 15 20:33:21 2008
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 #
 # Startup script for the Flumotion streaming server
 #
@@ -22,7 +22,7 @@
 
 # source configuration 
 if [ -f $sysconfig ] ; then
-        . $sysconfig
+	. $sysconfig
 fi
 
 # to make sure our service log file is always owned by the correct user,
@@ -66,7 +66,7 @@
 
 	if test "x$name" == "x"
 	then
-		echo $"Please specify a $type name"
+		nls "Please specify a $type name"
 		exit 1
 	fi
 
@@ -101,7 +101,7 @@
 
 	if test "x$name" == "x"
 	then
-		echo $"Please specify a $type name"
+		nls "Please specify a $type name"
 		exit 1
 	fi
 
@@ -118,7 +118,6 @@
 	return $RETVAL
 }
 
-
 condrestart() {
 	if test "x$*" != "x"
 	then
@@ -143,7 +142,7 @@
 
 	if test "x$name" == "x"
 	then
-		echo $"Please specify a $type name"
+		nls "Please specify a $type name"
 		exit 1
 	fi
 
@@ -172,7 +171,7 @@
 
 	if test "x$name" == "x"
 	then
-		echo $"Please specify a $type name"
+		nls "Please specify a $type name"
 		exit 1
 	fi
 
@@ -210,7 +209,7 @@
 	stop $*
 	start $*
 	;;
-  condrestart)
+  try-restart|force-reload)
 	shift
 	condrestart $*
 	;;
@@ -225,7 +224,7 @@
         list
 	;;
   *)
-	echo $"Usage: $service {start|stop|restart|list|status|clean}"
+	echo $"Usage: $service {start|stop|restart|try-restart|force-reload|list|status|clean}"
 	exit 1
 esac
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/flumotion.init?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list