diff options
author | adv <adv@uma.es> | 2011-02-23 17:41:35 +0000 |
---|---|---|
committer | adv <adv@uma.es> | 2011-02-23 17:41:35 +0000 |
commit | 8fc955223575738aa38cbca6c2e57f3ce2248c44 (patch) | |
tree | 008de34c83d6df4b44098e72f31eef905754f0d9 /admin/Sources/Services/opengnsys.init | |
parent | 85e3040b2b9298bea6a60077c59009a2524bbdb2 (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/Sources/Services/opengnsys.init')
-rwxr-xr-x | admin/Sources/Services/opengnsys.init | 17 |
1 files changed, 15 insertions, 2 deletions
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 "." |