1
0
Fork 0

tuned-adm: fixed restart attempt if tuned is not running

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2015-08-31 11:19:41 +02:00
parent b6ad363186
commit 7b4596ba21

View file

@ -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."