Skip to content

Commit

Permalink
Ajout d'un daemon de deblocage du fichier de lock
Browse files Browse the repository at this point in the history
  • Loading branch information
sl4shme committed Nov 6, 2013
1 parent 0c78a9c commit b47bb54
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions unlocker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/python
import tools, time

count=0
while 1 :
if not "OK" in open("lock"):
count+=1
else :
count=0
if count >= 5 :
tools.releaseSpawnLock()
time.sleep(5)




0 comments on commit b47bb54

Please sign in to comment.