Makefiles fixed en zo
This commit is contained in:
parent
70b64b601d
commit
91a678fccb
7 changed files with 55 additions and 7 deletions
38
Connector_HTTP/HTTP_Conn
Executable file
38
Connector_HTTP/HTTP_Conn
Executable file
|
@ -0,0 +1,38 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# description: DDVTech HTTP Connector
|
||||
# processname: Connector_HTTP
|
||||
|
||||
prog="Connector_HTTP"
|
||||
fullprog="/usr/bin/Connector_HTTP"
|
||||
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
|
|
@ -16,3 +16,9 @@ $(OUT): $(OBJ)
|
|||
$(CC) $(LIBS) -o $(OUT) $(OBJ)
|
||||
clean:
|
||||
rm -rf $(OBJ) $(OUT) Makefile.bak *~
|
||||
install: $(OUT)
|
||||
-service RTMP_Conn stop
|
||||
cp -f ./$(OUT) /usr/bin/
|
||||
cp -f ./HTTP_Conn /etc/init.d/
|
||||
service HTTP_Conn start
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue