CC-2250: airtime-pypo-stop doesnt work

-fixed
This commit is contained in:
mkonecny 2011-05-05 23:18:24 -04:00
parent 3eafdeef5d
commit b9c1f7356f
4 changed files with 15 additions and 5 deletions

View file

@ -28,7 +28,10 @@ try:
if (len(liquidsoap_pid) > 0):
os.system("svc -d /etc/service/pypo-liquidsoap 1>/dev/null 2>&1")
os.system("svc -d /etc/service/pypo-liquidsoap/log 1>/dev/null 2>&1")
os.system("kill -2 %s" % liquidsoap_pid)
pids = liquidsoap_pid.split("\n")
for pid in pids:
os.system("kill -2 %s" % pid)
print "Success."
else:
print "Not Running."

View file

@ -10,6 +10,8 @@ exec 2>&1
cd /usr/lib/airtime/pypo/bin/scripts
export PYTHONPATH=${api_client_path}
su ${ls_user} -c "${ls_path} ${ls_param}"
#su ${ls_user} -c "${ls_path} ${ls_param}" 2>&1
setuidgid ${ls_user} ${ls_path} ${ls_param}
# EOF