Ajout de logs.
darcs-hash:20060907101956-68412-14cab9f07c4a18bd77ac984f8131fa5eef103ec3.gz
This commit is contained in:
parent
b0144498a5
commit
aa2d759cd4
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,8 @@ from affich_tools import anim, cprint, OK
|
|||
from time import localtime, strftime, time, sleep
|
||||
import config
|
||||
from inspect import getargspec
|
||||
from syslog import *
|
||||
openlog("generate")
|
||||
|
||||
# On vérifie que l'on est root
|
||||
if os.getuid() != 0:
|
||||
|
@ -32,6 +34,7 @@ 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue