CC-3575: Use invoke-rc.d to start and stop services, rather than calling init scripts directly
-done
This commit is contained in:
parent
d9d8211a3b
commit
60d521a88a
8 changed files with 12 additions and 24 deletions
|
@ -9,7 +9,7 @@ if os.geteuid() != 0:
|
|||
try:
|
||||
print "Waiting for media-monitor processes to stop...",
|
||||
if (os.path.exists('/etc/init.d/airtime-media-monitor')):
|
||||
p = Popen("/etc/init.d/airtime-media-monitor stop", shell=True)
|
||||
p = Popen("invoke-rc.d airtime-media-monitor stop", shell=True)
|
||||
sts = os.waitpid(p.pid, 0)[1]
|
||||
print "OK"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue