def test_pid_read(): unix.pid_store("test_pid_read", pid_file_path="/tmp") pid = unix.pid_read("test_pid_read", pid_file_path="/tmp") assert_equal(pid, os.getpid()) os.unlink("/tmp/test_pid_read.pid")
def status(self, args): print "Server running at pid %d" % unix.pid_read(self.name, pid_file_path=self.pid_path)
def status(self, args): print "Server running at pid %d" % unix.pid_read(self.name)