summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-02-23 17:41:35 +0000
committeradv <adv@uma.es>2011-02-23 17:41:35 +0000
commit8fc955223575738aa38cbca6c2e57f3ce2248c44 (patch)
tree008de34c83d6df4b44098e72f31eef905754f0d9 /admin
parent85e3040b2b9298bea6a60077c59009a2524bbdb2 (diff)
OG 1.0 ticket:299 instalador
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1479 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/Sources/Services/ogAdmRepoAux26
-rwxr-xr-xadmin/Sources/Services/opengnsys.init17
-rw-r--r--admin/WebConsole/xajax_0.5_standard.zipbin0 -> 241376 bytes
3 files changed, 41 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmRepoAux b/admin/Sources/Services/ogAdmRepoAux
new file mode 100755
index 00000000..af13f093
--- /dev/null
+++ b/admin/Sources/Services/ogAdmRepoAux
@@ -0,0 +1,26 @@
+#!/bin/bash
+PARM=`cat`
+
+
+PARM1=$(echo $PARM | cut -f1 -d" ")
+PARM2=$(echo $PARM | cut -f2 -d" ")
+PARM3=$(echo $PARM | cut -f3 -d" ")
+PARM4=$(echo $PARM | cut -f4 -d" ")
+
+echo $PARM
+echo $PARM1
+echo $PARM2
+echo $PARM3
+echo $PARM4
+
+case $PARM1 in
+ START_MULTICAST)
+ #1 START_MULTICAST
+ #2 fichero a enviar
+ FILE=/opt/opengnsys/images$PARM2
+ MCASTOPT=$PARM3
+ #3 opciones protocolo multicast
+ echo "/opt/opengnsys/bin/SendFileMcast $FILE $MCASTOPT"
+ /opt/opengnsys/bin/sendFileMcast $FILE $MCASTOPT
+ ;;
+esac \ No newline at end of file
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init
index ba08c7ad..c28f3736 100755
--- a/admin/Sources/Services/opengnsys.init
+++ b/admin/Sources/Services/opengnsys.init
@@ -1,6 +1,6 @@
#! /bin/sh
-##################################################################################################################
+##########1.0######################################################################################################
####### Script de arranque de los servicios de OpenGnSys: Servidor ogAdmServer, Servidor de repositorio ogAdmRepo,
####### Tracker Bittorrent y seeder de imagenes por Bittorrent
####### autor: jcxifre <jcxifre@unizar.es>
@@ -40,7 +40,11 @@ REPODAEMON=$BASEDIR/sbin/$REPONAME
REPOCFG=$BASEDIR/etc/$REPONAME.cfg
REPOLOG=$BASEDIR/log/$REPONAME.log
REPODAEMON_OPTIONS="-f $REPOCFG -l $REPOLOG"
-
+############## ADV
+REPOAUXNAME=ogAdmRepoAux
+REPOAUXDAEMON=$BASEDIR/sbin/$REPOAUXNAME
+REPOAUXPORT=$((`cat $SERVERCFG | grep PUERTO | cut -f2 -d"="` + 1))
+############## ADV
#
# Opciones Bittorrent
#
@@ -83,6 +87,11 @@ arranca_demonios() {
echo -n "Iniciando demonio: "$REPONAME
start-stop-daemon --start --quiet --background --exec $REPODAEMON -- $REPODAEMON_OPTIONS
echo "."
+ ############ ADV
+ echo -n "Iniciando demonio: "$REPOAUXNAME
+ faucet $REPOAUXPORT --daemon --in bash -c "$REPOAUXDAEMON"
+ echo "."
+ ############ ADV
fi
if [ $RUN_BTTRACKER = "yes" ]
then
@@ -117,6 +126,10 @@ para_demonios() {
echo -n "Parando demonio: "$REPONAME
start-stop-daemon --stop --quiet --oknodo --name $REPONAME
echo "."
+ ############# ADV
+ echo -n "Parando demonio: "$REPOAUXNAME
+ pkill faucet
+ ############ ADV
echo -n "Parando demonio: "$SERVERNAME
start-stop-daemon --stop --quiet --oknodo --name $SERVERNAME
echo "."
diff --git a/admin/WebConsole/xajax_0.5_standard.zip b/admin/WebConsole/xajax_0.5_standard.zip
new file mode 100644
index 00000000..d247c280
--- /dev/null
+++ b/admin/WebConsole/xajax_0.5_standard.zip
Binary files differ