Updated init files...

This commit is contained in:
Thulinma 2011-04-11 18:11:49 +02:00
parent 07a6c6b9cc
commit c8bc0fbafe
2 changed files with 39 additions and 1 deletions

View file

@ -1,7 +1,7 @@
#!/bin/sh
#
# description: DDVTech HTTP Connector
# processname: Connector_HTTP
# processname: DDV_Conn_HTTP
prog="DDV_Conn_HTTP"
fullprog="/usr/bin/DDV_Conn_HTTP"

38
Connector_RTMP/RTMP_Conn Executable file
View file

@ -0,0 +1,38 @@
#!/bin/sh
#
# description: DDVTech RTMP Connector
# processname: DDV_Conn_RTMP
prog="DDV_Conn_RTMP"
fullprog="/usr/bin/DDV_Conn_RTMP"
RETVAL=0
start() {
echo "Starting $prog"
$fullprog
return $?
}
stop() {
echo "Stopping $prog"
killall $prog
return $?
}
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
;;
*)
echo "Usage: $0 {start|stop|restart}"
RETVAL=1
esac
exit $RETVAL