mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
Let's remember to remove the pidFile.
This commit is contained in:
parent
ca9f696c8c
commit
850fdf26a8
@ -300,6 +300,9 @@ if __name__ == '__main__':
|
||||
pid = os.getpid()
|
||||
fd.write('%s\n' % pid)
|
||||
fd.close()
|
||||
def removePidFile():
|
||||
os.remove(pidFile)
|
||||
atexit.register(removePidFile)
|
||||
except EnvironmentError, e:
|
||||
log.error('Error opening pid file %s: %s', pidFile, e)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user