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