diff --git a/plugins/walle/index.py b/plugins/walle/index.py index 63d0b266e..d2beba03e 100755 --- a/plugins/walle/index.py +++ b/plugins/walle/index.py @@ -117,10 +117,10 @@ def stop(): def restart(): file = initDreplace() - data = runShell(file + ' restart') - if data[1] == '': - return 'ok' - return 'fail' + cmd = file + ' restart' + data = subprocess.Popen( + cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + return 'ok' def reload():