Fix : get back LiveStatus as default.
[shinken.git] / shinken / bin.py
blob281747997764de1358350a7fb89c8ba15016df78
1 #!/usr/bin/env python
2 #Copyright (C) 2009-2010 :
3 # Gabes Jean, naparuba@gmail.com
4 # Gerhard Lausser, Gerhard.Lausser@consol.de
5 # Gregory Starck, g.starck@gmail.com
6 # Hartmut Goebel, h.goebel@goebel-consult.de
8 #This file is part of Shinken.
10 #Shinken is free software: you can redistribute it and/or modify
11 #it under the terms of the GNU Affero General Public License as published by
12 #the Free Software Foundation, either version 3 of the License, or
13 #(at your option) any later version.
15 #Shinken is distributed in the hope that it will be useful,
16 #but WITHOUT ANY WARRANTY; without even the implied warranty of
17 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 #GNU Affero General Public License for more details.
20 #You should have received a copy of the GNU Affero General Public License
21 #along with Shinken. If not, see <http://www.gnu.org/licenses/>.
24 """
25 This file is to be imported by every Shinken service component:
26 Arbiter, Scheduler, etc. It just checks for the main requirement of
27 Shinken.
28 """
30 import sys
32 VERSION = "0.5+"
34 # Make sure people are using Python 2.4 or higher
35 if sys.version_info < (2,4):
36 sys.exit("Shinken requires as a minimum Python 2.4.x, sorry")
37 elif sys.version_info >= (3,):
38 sys.exit("Shinken is not yet compatible with Python 3.x, sorry")
40 try:
41 import shinken.pyro_wrapper
42 except ImportError:
43 sys.exit("Shinken requires the Python Pyro module. Please install it.")