IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 21, 2008, 2:13:38 PM (18 years ago)
Author:
eugene
Message:

move site-specific macros to site.manoa.pro, site.mhpcc.pro; improve automate.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTasks/pantasks.pro

    r16369 r16570  
    6666end
    6767
    68 macro init.cluster.po
    69   $PARALLEL = 1
    70   controller exit true
    71 
    72   # po05 -- using for pantasks
    73   # po23 -- broken perl
    74 
    75   controller host add po02
    76   controller host add po03
    77   controller host add po04
    78 # controller host add po05
    79   controller host add po06
    80   controller host add po07
    81 # controller host add po08
    82 # controller host add po09
    83 # controller host add po10
    84 # controller host add po11
    85 # controller host add po12
    86 # controller host add po13
    87 # controller host add po14
    88 # controller host add po15
    89 # controller host add po16
    90 # controller host add po17
    91 # controller host add po18
    92 # controller host add po19
    93 # controller host add po20
    94 # controller host add po21
    95 # controller host add po22
    96 # controller host add po23
    97 # controller host add po24
    98 end
    99 
    100 macro init.cluster.sn
    101   $PARALLEL = 1
    102   controller exit true
    103   controller host add sn2
    104   controller host add sn3
    105   controller host add sn4
    106   controller host add sn5
    107 end
    108 
    10968macro init.isp
    11069  list DB -add isp
     
    11372macro init.essence
    11473  list DB -add essence_v2
    115 end
    116 
    117 macro init.cluster.mhpcc
    118   $PARALLEL = 1
    119   controller exit true
    120   controller host add ipp005
    121   controller host add ipp006
    122   controller host add ipp007
    123   controller host add ipp008
    124   controller host add ipp009
    125   controller host add ipp010
    126   controller host add ipp011
    127   controller host add ipp016
    128   controller host add ipp020
    129   controller host add ipp021
    130 end
    131 
    132 macro init.copy.mhpcc
    133  if ($0 != 2)
    134    echo "USAGE: init.copy.mhpcc (nebulous)"
    135    echo "nebulous may be 'on' or 'off'"
    136    break
    137  end
    138 
    139  if (("$1" != "on") && ("$1" != "off"))
    140    echo "USAGE: init.copy.mhpcc (nebulous)"
    141    echo "nebulous may be 'on' or 'off'"
    142    break
    143  end
    144  
    145  # the templates are used if we have a class_id/host relationship;
    146  # if none is found, the default values are used
    147  # XXX not sure how to handle the .N value if we need to use more than one
    148  # XXX this stuff should all be placed in a 'site' config file
    149 
    150  $COMPRESS = 1
    151 
    152  if ("$1" == "on")
    153   $NEBULOUS = 1
    154   $default_host     = ipp004
    155   $workdir_template = neb://@HOST@.0
    156  else
    157   $NEBULOUS = 0
    158   $default_host     = ipp004
    159   $workdir_template = /data/@HOST@.0
    160  end
    16174end
    16275
     
    467380end
    468381
    469 macro load.chiphost.table
    470   queueload tmp -x "cat $MODULES:0/chiphosts.config"
    471   ipptool2book tmp chiphosts -key camera
    472 end
    473 
    474382macro check.globals
    475383  if ($?NETWORK == 0)
Note: See TracChangeset for help on using the changeset viewer.