38 lines
620 B
Bash
Executable file
38 lines
620 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# description: DDVTech RTMP Connector
|
|
# processname: Connector_RTMP
|
|
|
|
prog="Connector_RTMP"
|
|
fullprog="/usr/bin/Connector_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
|