Tell systemctl to stfu when enabling/disabling services, just do it

This commit is contained in:
Alexandre Aubin 2020-05-17 17:00:33 +02:00
parent 7b4a9b57bc
commit f73c34bfc1

View file

@ -515,6 +515,9 @@ def _run_service_command(action, service):
need_lock = services[service].get('need_lock', False) \
and action in ['start', 'stop', 'restart', 'reload', 'reload-or-restart']
if action in ["enable", "disable"]:
cmd += " --quiet"
try:
# Launch the command
logger.debug("Running '%s'" % cmd)