Sleds/buildvm/scat/sleds_start.py

39 lines
827 B
Python

#!/bin/python3
'''
Created on June 24 2016
author: tpweis
file name: sleds_start.py
This functions uses scat recipe scripts to interogate the sleds server
'''
import os
import subprocess
import sys
sys.path.insert(0,'/sl/lib')
from sleds_utilities import *
from scat_startmongo import *
from scat_starttomcat import *
from scat_startk2 import *
def main():
"function main"
argv = sys.argv[1:]
IPADDR, USER, URN, MONGO = slscatargs(argv)
rc = scat_startmongo(IPADDR, USER, URN, MONGO)
print("mongod start return: " + str(rc))
rc = scat_starttomcat(IPADDR, USER, URN, MONGO)
print("tomcat start return: " + str(rc))
rc = scat_startk2(IPADDR, USER, URN, MONGO)
print("k2 start return: " + str(rc))
exit()
if __name__ == '__main__':
# execute only if run as a script
main()