CC-2758: Make airtime-install script Debian/Ubuntu compatible

-install complete
This commit is contained in:
Martin Konecny 2011-10-27 15:53:54 -04:00
parent cd0ff848fc
commit 87970740a0
6 changed files with 69 additions and 58 deletions

View file

@ -11,7 +11,9 @@ try:
sts = os.waitpid(p.pid, 0)[1]
#Start media-monitor daemon
print "Waiting for media-monitor processes to start..."
p = Popen("/etc/init.d/airtime-media-monitor stop", shell=True)
sts = os.waitpid(p.pid, 0)[1]
p = Popen("/etc/init.d/airtime-media-monitor start-no-monit", shell=True)
sts = os.waitpid(p.pid, 0)[1]
except Exception, e:

View file

@ -101,8 +101,9 @@ try:
print "Unable to connect to the Airtime server."
#restart airtime-playout
print "Waiting for processes to start..."
print "Waiting for pypo processes to start..."
p = Popen("/etc/init.d/airtime-playout stop", shell=True)
sts = os.waitpid(p.pid, 0)[1]
p = Popen("/etc/init.d/airtime-playout start-no-monit", shell=True)
sts = os.waitpid(p.pid, 0)[1]

View file

@ -12,8 +12,9 @@ try:
sts = os.waitpid(p.pid, 0)[1]
#start daemon
print "Waiting for processes to start..."
print "Waiting for show-recorder processes to start..."
p = Popen("/etc/init.d/airtime-show-recorder stop", shell=True)
sts = os.waitpid(p.pid, 0)[1]
p = Popen("/etc/init.d/airtime-show-recorder start-no-monit", shell=True)
sts = os.waitpid(p.pid, 0)[1]
except Exception, e: