Logs un peu plus lisibles.
darcs-hash:20060913082148-68412-c11ad62f10e0fc928c47e00a2268f2a2bbe75580.gz
This commit is contained in:
parent
32fa71b39e
commit
f201e9ad1b
1 changed files with 3 additions and 1 deletions
|
@ -34,7 +34,6 @@ if os.getuid() != 0:
|
|||
signal.signal(signal.SIGINT, signal.SIG_IGN) # Pas de Ctrl-C
|
||||
|
||||
db = crans_ldap()
|
||||
syslog("#".join(map(str, db.services_to_restart())))
|
||||
make_lock('auto_generate', 'Big lock', nowait=1)
|
||||
|
||||
class base_reconfigure:
|
||||
|
@ -274,6 +273,9 @@ signal.signal(signal.SIGINT, signal.SIG_DFL) # Comportement normal de Ctrl-C
|
|||
remove_lock('auto_generate')
|
||||
|
||||
if __name__ == '__main__':
|
||||
openlog('generate', LOG_PID)
|
||||
for x in db.services_to_restart():
|
||||
syslog(str(x))
|
||||
classe = eval(hostname)
|
||||
|
||||
args_autorises = ['quiet', 'remove=', 'add=', 'list', 'help', 'reconnect']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue