From 5c6f0bf13b31d6bde1ab751b6307fc3852c13094 Mon Sep 17 00:00:00 2001 From: James Meyer Date: Fri, 27 Feb 2009 10:56:02 -0600 Subject: Finish off fe_restart command for MBE from process.py --- abs/mv-core/local-website/PKGBUILD | 2 +- abs/mv-core/local-website/contents/process.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/abs/mv-core/local-website/PKGBUILD b/abs/mv-core/local-website/PKGBUILD index 2358cf5..e0b2380 100755 --- a/abs/mv-core/local-website/PKGBUILD +++ b/abs/mv-core/local-website/PKGBUILD @@ -1,6 +1,6 @@ pkgname=local-website pkgver=3 -pkgrel=82 +pkgrel=85 pkgdesc="Local website for MythVantage " arch=(i686 x86_64) #depends=('lighttpd') diff --git a/abs/mv-core/local-website/contents/process.py b/abs/mv-core/local-website/contents/process.py index b390440..99404a4 100755 --- a/abs/mv-core/local-website/contents/process.py +++ b/abs/mv-core/local-website/contents/process.py @@ -222,13 +222,15 @@ def go_wake(myhost): def go_kill(myhost,kill_type): myhostname = socket.gethostname() if myhostname.strip() == myhost.strip(): - cmd="sudo /usr/bin/update_systemno_op " - command=cmd + kill_type + if kill_type == "killX": + command="sudo /sbin/sv restart frontend" + else: + command="sudo /usr/bin/killall -9 mythfrontend" else: cmd=" call fe_restart " cmd+=kill_type command="sudo /usr/bin/func \"" + myhost.strip() + "*\" " + cmd - print command + #print command results=os.popen(command,'r') return results -- cgit v0.12