diff options
Diffstat (limited to 'admin/Sources/Services/opengnsys.init')
-rwxr-xr-x | admin/Sources/Services/opengnsys.init | 21 |
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 "." |