You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
456 B
Python
27 lines
456 B
Python
11 years ago
|
#!/usr/bin/env python2
|
||
|
|
||
|
import sys
|
||
|
|
||
|
def usage():
|
||
|
print "Specify a valid action.\nPossible actions: start, stop, add-node, reload-config, reload-packages"
|
||
|
|
||
|
if len(sys.argv) < 2:
|
||
|
usage()
|
||
|
exit(1)
|
||
|
|
||
|
if sys.argv[1] == "start":
|
||
|
import application
|
||
|
application.run(sys.argv[2:])
|
||
|
elif sys.argv[1] == "stop":
|
||
|
pass
|
||
|
else:
|
||
|
usage()
|
||
|
exit(1)
|
||
|
|
||
|
|
||
|
"""
|
||
|
parser = argparse.ArgumentParser(description="Nexus control application")
|
||
|
|
||
|
config = core.config.ConfigReader("")
|
||
|
"""
|