summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2012-03-20 10:00:58 +0000
committerramon <ramongomez@us.es>2012-03-20 10:00:58 +0000
commit55477d293862a9965f044b558d1224104dc2dd2b (patch)
tree52b590e2d75a1dccb2b14e03915db0b02d12fc68 /admin
parent643ca8ca716a9f5495b2a0d392d6ecfa063e4af0 (diff)
VersiĆ³n 1.0.4, #414: Arrancar servicios en CentOS; mejoras en ficheros de cron.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2902 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/Sources/Services/opengnsys.init14
1 files changed, 7 insertions, 7 deletions
diff --git a/admin/Sources/Services/opengnsys.init b/admin/Sources/Services/opengnsys.init
index 2125e187..863184f9 100755
--- a/admin/Sources/Services/opengnsys.init
+++ b/admin/Sources/Services/opengnsys.init
@@ -88,14 +88,14 @@ config() {
SUCCESSMSG="log_end_msg 0"
FAILMSG="log_end_msg 1"
;;
- Fedora)
+ CentOS|Fedora)
INITFUNCTIONS=/etc/init.d/functions
DAEMONSTART="daemon"
- EXTRAOPTS=""
+ ENDOPTS="&"
DAEMONSTOP="killproc"
ACTIONMSG="echo -n"
- SUCCESSMSG="( success; echo )"
- FAILMSG="( failure; echo )"
+ SUCCESSMSG="eval ( success; echo )"
+ FAILMSG="eval ( failure; echo )"
;;
*) echo "DistribuciĆ³n Linux desconcocida o no soportada."
exit ;;
@@ -127,7 +127,7 @@ arranca_demonios() {
if [ $RUN_OGADMSERVER = "yes" ]
then
$ACTIONMSG "Iniciando demonio: $SERVERNAME"
- $DAEMONSTART $SERVERDAEMON $EXTRAOPTS $SERVERDAEMON_OPTIONS
+ $DAEMONSTART $SERVERDAEMON $EXTRAOPTS $SERVERDAEMON_OPTIONS $ENDOPTS
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
fi
if [ $RUN_OGADMSERVER = "yes" ] && [ $RUN_OGADMREPO = "yes" ]
@@ -137,7 +137,7 @@ arranca_demonios() {
if [ $RUN_OGADMREPO = "yes" ]
then
$ACTIONMSG "Iniciando demonio: $REPONAME"
- $DAEMONSTART $REPODAEMON $EXTRAOPTS $REPODAEMON_OPTIONS
+ $DAEMONSTART $REPODAEMON $EXTRAOPTS $REPODAEMON_OPTIONS $ENDOPTS
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
############ ADV
$ACTIONMSG "Iniciando demonio: $REPOAUXNAME"
@@ -148,7 +148,7 @@ arranca_demonios() {
if [ $RUN_OGADMAGENT = "yes" ]
then
$ACTIONMSG "Iniciando demonio: $AGENTNAME"
- $DAEMONSTART $AGENTDAEMON $EXTRAOPTS $AGENTDAEMON_OPTIONS
+ $DAEMONSTART $AGENTDAEMON $EXTRAOPTS $AGENTDAEMON_OPTIONS $ENDOPTS
[ $? = 0 ] && $SUCCESSMSG || $FAILMSG
fi
if [ $RUN_BTTRACKER = "yes" ]