Amelioration du systeme de lock
darcs-hash:20050401070006-d1718-8de16543aa3cba4ca50940a102b852cb08d24c3c.gz
This commit is contained in:
parent
a3b1f8a2c3
commit
1b545bd2ab
1 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,12 @@ Netmask= 0.0.0.0
|
|||
|
||||
def __init__(self) :
|
||||
self.db = crans_ldap()
|
||||
# Pour eviter le probleme de lock...
|
||||
os.system("kill $(cat /var/run/wifi-update.pid)")
|
||||
time.sleep(1)
|
||||
|
||||
def __del__(self):
|
||||
os.system("cd / ; systrace -d /etc/systrace/wifi-update -A /usr/local/bin/twistd --syslog -o -y /usr/scripts/gestion/wifi-update.py --pidfile=/var/run/wifi-update.pid")
|
||||
|
||||
def lockname(self):
|
||||
# On change le nom du lock pour avoir un nom unique pour tout ce qui
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue