mistserver/Connector_HTTP/HTTP_Conn
2011-04-11 18:11:49 +02:00

38 lines
617 B
Bash
Executable file

#!/bin/sh
#
# description: DDVTech HTTP Connector
# processname: DDV_Conn_HTTP
prog="DDV_Conn_HTTP"
fullprog="/usr/bin/DDV_Conn_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