Changes between Version 5 and Version 6 of ServerAdministration


Ignore:
Timestamp:
Jun 6, 2011, 4:55:55 PM (8 years ago)
Author:
work@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ServerAdministration

    v5 v6  
    1414 * apache-tomcat-dbnpdemo --> alias to dbnptest, used to building the dbnpdemo package
    1515
     16=== Scripts for managing tomcat ===
     17In /home/tomcat/scripts a couple of scripts are available for easy handling the tomcat instances:
     18 * kill_tomcat.sh --> kills a running tomcat instance
     19 * restart_tomcat.sh --> restarts a running tomcat instance
     20 * check_tomcat.sh --> checks if a given tomcat is running, and starts it if it is not running
     21
     22Some of these scripts are currently executed using a cronjob:
     23
     24{{{
     25tomcat@nmcdsp ~/scripts $ crontab -l
     26# m h  dom mon dow   command
     27...
     28# Check if tomcat is running properly
     29* * * * * /home/tomcat/scripts/check_tomcat.sh www >> /home/tomcat/logs/check_tomcat.log 2>&1
     30* * * * * /home/tomcat/scripts/check_tomcat.sh ci >> /home/tomcat/logs/check_tomcat.log 2>&1
     31* * * * * /home/tomcat/scripts/check_tomcat.sh nmcdsptest >> /home/tomcat/logs/check_tomcat.log 2>&1
     32* * * * * /home/tomcat/scripts/check_tomcat.sh tools >> /home/tomcat/logs/check_tomcat.log 2>&1
     33
     34# restart tomcat automatically every day
     350 6 * * * /home/tomcat/scripts/kill_tomcat.sh www >> /home/tomcat/logs/restart_tomcat.log 2>&1
     360 6 * * * /home/tomcat/scripts/kill_tomcat.sh ci >> /home/tomcat/logs/restart_tomcat.log 2>&1
     370 6 * * * /home/tomcat/scripts/kill_tomcat.sh nmcdsptest >> /home/tomcat/logs/restart_tomcat.log 2>&1
     380 6 * * * /home/tomcat/scripts/kill_tomcat.sh tools >> /home/tomcat/logs/restart_tomcat.log 2>&1
     39
     40# and kill ci every 3 hours
     410 */2 * * * /home/tomcat/scripts/kill_tomcat.sh ci >> /home/tomcat/logs/restart_tomcat.log 2>&1
     42...
     43tomcat@nmcdsp ~/scripts $
     44}}}
    1645
    1746