From 7b4596ba21893f12181630d73d6ec99f447104bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Mon, 31 Aug 2015 11:19:41 +0200 Subject: [PATCH] tuned-adm: fixed restart attempt if tuned is not running MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jaroslav Škarvada --- tuned/admin/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tuned/admin/admin.py b/tuned/admin/admin.py index 4db24c4..1180785 100644 --- a/tuned/admin/admin.py +++ b/tuned/admin/admin.py @@ -77,7 +77,7 @@ class Admin(object): if self._cmd.write_to_file(consts.ACTIVE_PROFILE_FILE, profile_name): print "Trying to (re)start tuned..." (ret, out) = self._cmd.execute(["service", "tuned", "restart"]) - if retcode == 0: + if ret == 0: print "Tuned (re)started, changes applied." else: print "Tuned (re)start failed, you need to (re)start tuned by hand for changes to apply." -- 2.5.0