summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-06-04 09:52:47 +0000
committerramon <ramongomez@us.es>2012-06-04 09:52:47 +0000
commit9d859d0dd4bbd71fe72631a1924647ba3df0b21e (patch)
tree2cccec8015ac39dbb48187294a3a6baf23047972
parent2ba98bef6fa5e3a85bb2025dc1073f3f6ece303c (diff)
VersiĆ³n 1.0.4, #414: Corregir problemas de paradas de servicios en Ubuntu.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3132 a21b9725-9963-47de-94b9-378ad31fedc9
-rwxr-xr-xadmin/Sources/Services/opengnsys.init16
1 files changed, 6 insertions, 10 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init
index a4617b29..2c46fc70 100755
--- a/admin/Sources/Services/opengnsys.init
+++ b/admin/Sources/Services/opengnsys.init
@@ -7,7 +7,7 @@
# Default-Start: 2 3 4 5
# Default-Stop: 1
# Short-Description: Servicios del sistema OpenGnSys
-# Description: Servicios del sistema OpenGnSys:
+# Description: Servicios del sistema OpenGnSys
### END INIT INFO
#
@@ -81,13 +81,13 @@ config() {
INITFUNCTIONS=/lib/lsb/init-functions
DAEMONSTART="start-stop-daemon --start --quiet --background --exec"
EXTRAOPTS="--"
- DAEMONSTOP="start-stop-daemon --stop --quiet --oknodo --exec"
+ DAEMONSTOP="start-stop-daemon --stop --quiet --oknodo --name"
ACTIONMSG="log_daemon_msg"
SUCCESSMSG="log_end_msg 0"
FAILMSG="log_end_msg 1"
TRACKERSTART="start-stop-daemon --make-pidfile --pidfile $BTTRACKPID --start --quiet --background --exec"
BTTRACK_OPTIONS="$BTTRACK_OPTIONS --parse_allowed_interval 1"
- TRACKERSTOP="start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $BTTRACKERPID"
+ TRACKERSTOP="start-stop-daemon --stop --quiet --oknodo --retry 30 --pidfile $BTTRACKPID"
SEEDERSTART="start-stop-daemon --make-pidfile --pidfile $BTSEEDERPID --start --quiet --background --exec"
SEEDERSTOP="start-stop-daemon --stop --quiet --oknodo --pidfile $BTSEEDERPID"
;;
@@ -147,11 +147,9 @@ arranca_demonios() {
$ACTIONMSG "Iniciando demonio: $REPONAME"
$DAEMONSTART $REPODAEMON $EXTRAOPTS $REPODAEMON_OPTIONS $ENDOPTS
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
- ############ ADV
$ACTIONMSG "Iniciando demonio: $REPOAUXNAME"
faucet $REPOAUXPORT --daemon --in bash -c "$REPOAUXDAEMON"
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
- ############ ADV
fi
if [ $RUN_OGADMAGENT = "yes" ]; then
$ACTIONMSG "Iniciando demonio: $AGENTNAME"
@@ -185,18 +183,16 @@ para_demonios() {
rm -f $BTTRACKPID
fi
$ACTIONMSG "Parando demonio: $AGENTNAME"
- $DAEMONSTOP $AGENTDAEMON
+ $DAEMONSTOP $AGENTNAME
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
$ACTIONMSG "Parando demonio: $REPONAME"
- $DAEMONSTOP $REPODAEMON
+ $DAEMONSTOP $REPONAME
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
- ############# ADV
$ACTIONMSG "Parando demonio: $REPOAUXNAME"
pkill faucet
[ $? -le 1 ] && $SUCCESSMSG || $FAILMSG
- ############ ADV
$ACTIONMSG "Parando demonio: $SERVERNAME"
- $DAEMONSTOP $SERVERDAEMON
+ $DAEMONSTOP $SERVERNAME
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
}