Lines Matching refs:pidfile
139 def run_as_daemon(func, pidfile, logfile): argument
202 with open(pidfile, 'w') as pf:
206 os.remove(pidfile)
211 pidfile = PIDPREFIX % (ip, port)
213 with open(pidfile) as pf:
220 % pidfile)
229 run_as_daemon(daemon_main, pidfile, os.path.abspath(logfile))
235 pidfile = PIDPREFIX % (ip, port)
237 with open(pidfile) as pf:
255 % (pidfile,portstr))
264 if os.path.exists(pidfile):
265 os.remove(pidfile)