Updated init files...
This commit is contained in:
parent
07a6c6b9cc
commit
c8bc0fbafe
2 changed files with 39 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# description: DDVTech HTTP Connector
|
# description: DDVTech HTTP Connector
|
||||||
# processname: Connector_HTTP
|
# processname: DDV_Conn_HTTP
|
||||||
|
|
||||||
prog="DDV_Conn_HTTP"
|
prog="DDV_Conn_HTTP"
|
||||||
fullprog="/usr/bin/DDV_Conn_HTTP"
|
fullprog="/usr/bin/DDV_Conn_HTTP"
|
||||||
|
|
38
Connector_RTMP/RTMP_Conn
Executable file
38
Connector_RTMP/RTMP_Conn
Executable 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
|
Loading…
Add table
Reference in a new issue