ajout de l'autostatus
darcs-hash:20041022010015-4ec08-64e74a74a660c92f361876c0db48a9194827f5e7.gz
This commit is contained in:
parent
c5da6c9aeb
commit
96bed6bbac
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue