From 96bed6bbacbb0ead82a52a649a92625a01876b14 Mon Sep 17 00:00:00 2001 From: chove Date: Fri, 22 Oct 2004 03:00:15 +0200 Subject: [PATCH] ajout de l'autostatus darcs-hash:20041022010015-4ec08-64e74a74a660c92f361876c0db48a9194827f5e7.gz --- gestion/gen_confs/generate.py | 10 ++++++++++ 1 file changed, 10 insertions(+) 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