diff --git a/gestion/gen_confs/generate.py b/gestion/gen_confs/generate.py index 22577073..894d9882 100755 --- a/gestion/gen_confs/generate.py +++ b/gestion/gen_confs/generate.py @@ -233,6 +233,16 @@ if hostname == 'zamok': except: if auto : db.services_to_restart('switch',to_do['switch']) sys.stdout.write('Erreur dans la config des switchs.\n') + + if 'autostatus' in to_do.keys() : + if auto : db.services_to_restart('-autostatus') + try: + from autostatus import autostatus + a = autostatus() + a.debug = debug + a.reconfigure() + except: + if auto : db.services_to_restart('autostatus') # Les services suivants ont besoin de la liste des machines # On va donc la lire une seule fois pour leur passer ensuite