mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Tell systemctl to stfu when enabling/disabling services, just do it
This commit is contained in:
parent
7b4a9b57bc
commit
f73c34bfc1
1 changed files with 3 additions and 0 deletions
|
@ -515,6 +515,9 @@ def _run_service_command(action, service):
|
||||||
need_lock = services[service].get('need_lock', False) \
|
need_lock = services[service].get('need_lock', False) \
|
||||||
and action in ['start', 'stop', 'restart', 'reload', 'reload-or-restart']
|
and action in ['start', 'stop', 'restart', 'reload', 'reload-or-restart']
|
||||||
|
|
||||||
|
if action in ["enable", "disable"]:
|
||||||
|
cmd += " --quiet"
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Launch the command
|
# Launch the command
|
||||||
logger.debug("Running '%s'" % cmd)
|
logger.debug("Running '%s'" % cmd)
|
||||||
|
|
Loading…
Add table
Reference in a new issue