1
0
Fork 0

Show rollback info message only when in daemon mode.

This commit removes misleading info message about rolling back
changes when running tuned in one-shot mode.
This commit is contained in:
Jiri Mencak 2018-08-14 16:45:33 +02:00
parent 3e4d491492
commit 8f065fbc05

View file

@ -173,8 +173,11 @@ class Daemon(object):
# do full cleanup
full_rollback = False
if self._full_rollback_required():
log.info("terminating Tuned, rolling back all changes")
full_rollback = True
if self._daemon:
log.info("terminating Tuned, rolling back all changes")
full_rollback = True
else:
log.info("terminating Tuned")
else:
log.info("terminating Tuned due to system shutdown / reboot")
if self._daemon: