summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-04-06 12:35:26 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-04-07 12:12:20 +0200
commitd9b24135c7af8e0b099ceb71b3b355e963344cf8 (patch)
tree1d1f41a6fa33a3982832ce91de4531736449f4fb /installer
parent4d7fd58c8542c8db5309b3ba69c7bdeb2c82878b (diff)
#927 Remove opengnsys.cron script
This commit removes the opengnsys cron script that checks if the ogAdmServer is running or using too much CPU and restarts the process. Now that the ogAdmServer is more stable this script is not needed. Also, without this script we are going to know better when the ogAdmServer is having a problem and get better reports. In case you observe a crash in ogAdmServer, please, run it under valgrind: valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose --log-file=/tmp/ogadmserver-valgrind-out.log /opt/opengnsys/sbin/ogAdmServer -f /opt/opengnsys/etc/ogAdmServer.cfg And post your 'ogadmserver-valgrind-out.log' file to the mailing list. This patch changes the installer and the update scripts too. They do not configure opengnsys.cron anymore. The update script search and remove the deprecated files as well.
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh1
-rwxr-xr-xinstaller/opengnsys_update.sh5
2 files changed, 4 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index dcc02270..ef87956b 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -1472,7 +1472,6 @@ function openGnsysConfigure()
/etc/default/opengnsys
fi
echoAndLog "${FUNCNAME}(): Creating cron files."
- echo "* * * * * root [ -x $INSTALL_TARGET/bin/opengnsys.cron ] && $INSTALL_TARGET/bin/opengnsys.cron" > /etc/cron.d/opengnsys
echo "* * * * * root [ -x $INSTALL_TARGET/bin/torrent-creator ] && $INSTALL_TARGET/bin/torrent-creator" > /etc/cron.d/torrentcreator
echo "5 * * * * root [ -x $INSTALL_TARGET/bin/torrent-tracker ] && $INSTALL_TARGET/bin/torrent-tracker" > /etc/cron.d/torrenttracker
echo "* * * * * root [ -x $INSTALL_TARGET/bin/deletepreimage ] && $INSTALL_TARGET/bin/deletepreimage" > /etc/cron.d/imagedelete
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 151d0b1b..c1ff2a5d 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -996,12 +996,15 @@ function updateServerFiles()
fi
echoAndLog "${FUNCNAME}(): updating cron files"
- [ ! -f /etc/cron.d/opengnsys ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/opengnsys.cron ] && $INSTALL_TARGET/bin/opengnsys.cron" > /etc/cron.d/opengnsys
[ ! -f /etc/cron.d/torrentcreator ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/torrent-creator ] && $INSTALL_TARGET/bin/torrent-creator" > /etc/cron.d/torrentcreator
[ ! -f /etc/cron.d/torrenttracker ] && echo "5 * * * * root [ -x $INSTALL_TARGET/bin/torrent-tracker ] && $INSTALL_TARGET/bin/torrent-tracker" > /etc/cron.d/torrenttracker
[ ! -f /etc/cron.d/imagedelete ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/deletepreimage ] && $INSTALL_TARGET/bin/deletepreimage" > /etc/cron.d/imagedelete
[ ! -f /etc/cron.d/ogagentqueue ] && echo "* * * * * root [ -x $INSTALL_TARGET/bin/ogagentqueue.cron ] && $INSTALL_TARGET/bin/ogagentqueue.cron" > /etc/cron.d/ogagentqueue
+ echoAndLog "${FUNCNAME}(): deleting deprecated cron file"
+ [ -e /etc/cron.d/opengnsys ] && rm -f /etc/cron.d/opengnsys \
+ $INSTALL_TARGET/bin/opengnsys.cron
+
# Se modifican los nombres de las plantilla PXE por compatibilidad con los equipos UEFI.
if [ -f $INSTALL_TARGET/tftpboot/menu.lst/templates/01 ]; then
BIOSPXEDIR="$INSTALL_TARGET/tftpboot/menu.lst/templates"