source: trunk/Monitoring/Failover/failover @ 840

Last change on this file since 840 was 840, checked in by jripsl, 11 years ago
  • SMON project bootstrap.
  • Property svn:executable set to *
File size: 1.0 KB
Line 
1#!/usr/bin/python -u
2# -*- coding: ISO-8859-1 -*-
3
4##################################
5#  @program        smon
6#  @description    simulation monitor
7#  @copyright      Copyright “(c)2009 Centre National de la Recherche Scientifique CNRS.
8#                             All Rights Reserved”
9#  @svn_file       $Id: failover 2545 2013-02-01 09:58:10Z jripsl $
10#  @version        $Rev: 2545 $
11#  @lastrevision   $Date: 2013-02-01 10:58:10 +0100 (Fri, 01 Feb 2013) $
12#  @license        CeCILL (http://dods.ipsl.jussieu.fr/jripsl/smon/LICENSE)
13##################################
14
15from smon import dao
16
17class Failover():
18        pass
19 
20def main():
21
22        # parse args
23        parser = argparse.ArgumentParser(prog='failover')
24        parser.add_argument('-v', dest='verbose',required=False,action='store_true')
25        args = parser.parse_args()
26
27        # check
28        if not os.path.exists(SMON.smon_home):
29                sys.exit(1)
30
31        # open DB connections
32       
33        # initialize logger
34
35        #
36
37
38        # close DB connections
39
40
41if __name__ == '__main__':
42        try:
43                main()
44
45                sys.exit(0)
46
47        except Exception, e:
48
49                #traceback.print_exc()
50
51                sys.exit(1)
Note: See TracBrowser for help on using the repository browser.