HCE Project Python language Distributed Tasks Manager Application, Distributed Crawler Application and client API bindings.  2.0.0-chaika
Hierarchical Cluster Engine Python language binding
dc-daemon.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 
3 
4 """
5 HCE project, Python bindings, Distributed Tasks Manager application.
6 Event objects definitions.
7 
8 @package: dc
9 @file dc-daemon.py
10 @author Oleksii <developers.hce@gmail.com>
11 @link: http://hierarchical-cluster-engine.com/
12 @copyright: Copyright &copy; 2013-2014 IOIX Ukraine
13 @license: http://hierarchical-cluster-engine.com/license/
14 @since: 0.1
15 """
16 
17 
18 import ppath
19 from ppath import sys
20 
21 from dc.DCD import DCD
22 
23 
24 #That script create main daemon application to run dtm
25 
26 
27 # create the app
28 app = None
29 
30 try:
31  app = DCD()
32  # setup the application
33  app.setup()
34  app.args.add_argument('-c', '--config', action='store', metavar='config_file', help='config ini-file', required=True)
35  app.args.add_argument('-n', '--name', action='store', metavar='app_name', help='application name')
36  # run the application
37  app.run()
38 
39 except:
40  raise
41 finally:
42  # close the app
43  app.close()
Definition: DCD.py:1