Home | History | Annotate | Download | only in server

Lines Matching refs:pidfile

25   def __init__(self, pidfile, stdin='/dev/null',
30 self.pidfile = pidfile
73 # write pidfile
76 file(self.pidfile, 'w+').write("%s\n" % pid)
79 os.remove(self.pidfile)
85 # Check for a pidfile to see if the daemon already runs
87 pf = file(self.pidfile, 'r')
94 message = "pidfile %s already exist. Daemon already running?\n"
95 sys.stderr.write(message % self.pidfile)
106 # Get the pid from the pidfile
108 pf = file(self.pidfile, 'r')
115 message = "pidfile %s does not exist. Daemon not running?\n"
116 sys.stderr.write(message % self.pidfile)
130 if os.path.exists(self.pidfile):
131 os.remove(self.pidfile)