summaryrefslogtreecommitdiffstats
path: root/admin/Sources/Services/opengnsys.init
diff options
context:
space:
mode:
authoradv <adv@uma.es>2011-03-27 18:26:41 +0000
committeradv <adv@uma.es>2011-03-27 18:26:41 +0000
commitaeb0e7d74ae051bee323f52228e4e1da0431f362 (patch)
tree06faa9db7a2bc188a3fa3c8b1b0864beddb0eb01 /admin/Sources/Services/opengnsys.init
parent16ac86e1917e2878479e2952415c9ccb56313f22 (diff)
v1.0: ticket:350 ActivaciĆ³n del programador de tareas ogAdmAgent
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1634 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin/Sources/Services/opengnsys.init')
-rwxr-xr-xadmin/Sources/Services/opengnsys.init21
1 files changed, 20 insertions, 1 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init
index c28f3736..a195301e 100755
--- a/admin/Sources/Services/opengnsys.init
+++ b/admin/Sources/Services/opengnsys.init
@@ -45,6 +45,16 @@ REPOAUXNAME=ogAdmRepoAux
REPOAUXDAEMON=$BASEDIR/sbin/$REPOAUXNAME
REPOAUXPORT=$((`cat $SERVERCFG | grep PUERTO | cut -f2 -d"="` + 1))
############## ADV
+
+#
+# Servidor de tareas programadas
+#
+AGENTNAME=ogAdmAgent
+AGENTDAEMON=$BASEDIR/sbin/$AGENTNAME
+AGENTCFG=$BASEDIR/etc/$AGENTNAME.cfg
+AGENTLOG=$BASEDIR/log/$AGENTNAME.log
+AGENTDAEMON_OPTIONS="-f $AGENTCFG -l $AGENTLOG"
+
#
# Opciones Bittorrent
#
@@ -93,6 +103,12 @@ arranca_demonios() {
echo "."
############ ADV
fi
+ if [ $RUN_OGADMAGENT = "yes" ]
+ then
+ echo -n "Iniciando demonio: "$AGENTNAME $AGENTDAEMON
+ start-stop-daemon --start --quiet --background --exec $AGENTDAEMON -- $AGENTDAEMON_OPTIONS
+ echo "."
+ fi
if [ $RUN_BTTRACKER = "yes" ]
then
echo -n "Iniciando demonio: "$BTTRACK
@@ -122,7 +138,10 @@ para_demonios() {
start-stop-daemon --stop --quiet --oknodo --pidfile $BTTRACKPID
echo "."
rm $BTTRACKPID > /dev/null
- fi
+ fi
+ echo -n "Parando demonio: "$AGENTNAME
+ start-stop-daemon --stop --quiet --oknodo --name $AGENTNAME
+ echo "."
echo -n "Parando demonio: "$REPONAME
start-stop-daemon --stop --quiet --oknodo --name $REPONAME
echo "."