IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34384


Ignore:
Timestamp:
Sep 5, 2012, 11:11:59 AM (14 years ago)
Author:
Serge CHASTEL
Message:

Added more documentation for the deloyment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/who_is_using_the_cluster/deploy.sh

    r34335 r34384  
    11#!/bin/bash
    22
     3# Directory where the executables will be installed
    34BIN_TARGET_DIRECTORY=$HOME/operations/who_is_using_the_cluster
     5# Directory where the generated HTML pages will be written
     6# Must be accessible from each node and from apache
     7# On the IPP cluster, it's a symbolic link located in the ippm
     8# user home directory (hence nfs accessible) to /var/www/localhost/htdocs
     9# on ippmonitor.ipp.ifa.hawaii.edu
    410HTML_TARGET_DIRECTORY=$HOME/htdocs/clusterMonitor2
     11# File containing the nodes names (one nore per line)
     12TARGET_NODENAMES_FILENAME=$HOME/common/share/ipp/AllNodesNames
    513
     14# No need to change anything from there unless you know what you're doing
    615echo "$BIN_TARGET_DIRECTORY"
    716
     
    3443echo "Creating html files for each node"
    3544$MKDIR $HTML_TARGET_DIRECTORY/nodes
    36 for node in `cat $HOME/common/share/ipp/AllNodesNames`; do
     45for node in `cat $TARGET_NODENAMES_FILENAME`; do
    3746  echo "$node not updated yet" > $HTML_TARGET_DIRECTORY/nodes/$node.html
    3847  $CHMOD 644 $HTML_TARGET_DIRECTORY/nodes/$node.html
    3948done
    4049
     50echo "Now you can addi somethign like:"
     51echo "--"
     52echo "MAILTO=schastel@ifa.hawaii.edu"
     53echo "0-55/5 * * * * $HTML_TARGET_DIRECTORY/update_all_nodes.py >> /tmp/who_is_using_the_cluster.log 2>&1"
     54echo "--"
     55echo "to the crontab of a relavant user for a relevant node"
     56
Note: See TracChangeset for help on using the changeset viewer.