ajout de l'autostatus

darcs-hash:20041022010015-4ec08-64e74a74a660c92f361876c0db48a9194827f5e7.gz
This commit is contained in:
chove 2004-10-22 03:00:15 +02:00
parent c5da6c9aeb
commit 96bed6bbac

View file

@ -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