tuned-adm: fixed restart attempt if tuned is not running
Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
parent
b6ad363186
commit
7b4596ba21
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in a new issue