示例#1
0
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")
示例#2
0
 def status(self, args):
     print "Server running at pid %d" % unix.pid_read(self.name,
                                                      pid_file_path=self.pid_path)
示例#3
0
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")
示例#4
0
 def status(self, args):
     print "Server running at pid %d" % unix.pid_read(self.name)