cc-2055: switch to init-d

-fix daemon being able to start multiple times
-make airtime-install shell script to call installers seperately
-
This commit is contained in:
martin 2011-05-31 12:45:27 -04:00
parent 5803635d50
commit c05c2f1e28
5 changed files with 34 additions and 21 deletions

View file

@ -174,12 +174,10 @@ try:
"""
print "Waiting for processes to start..."
os.system("service airtime-pypo start")
Popen("service airtime-pypo start".split(" "))
print "sleeping"
time.sleep(10)
p = Popen("/etc/init.d/airtime-pypo start", shell=True)
sts = os.waitpid(p.pid, 0)[1]
except Exception, e:
print "exception:" + str(e)
sys.exit(1)