-#!/bin/bash
+#!/bin/sh
#
# Startup script for the Flumotion streaming server
#
# source configuration
if [ -f $sysconfig ] ; then
- . $sysconfig
+ . $sysconfig
fi
# to make sure our service log file is always owned by the correct user,
if test "x$name" == "x"
then
- echo $"Please specify a $type name"
+ nls "Please specify a $type name"
exit 1
fi
if test "x$name" == "x"
then
- echo $"Please specify a $type name"
+ nls "Please specify a $type name"
exit 1
fi
return $RETVAL
}
-
condrestart() {
if test "x$*" != "x"
then
if test "x$name" == "x"
then
- echo $"Please specify a $type name"
+ nls "Please specify a $type name"
exit 1
fi
if test "x$name" == "x"
then
- echo $"Please specify a $type name"
+ nls "Please specify a $type name"
exit 1
fi
stop $*
start $*
;;
- condrestart)
+ try-restart|force-reload)
shift
condrestart $*
;;
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