Reference

Apache::TestServer(3pm)

stop()

attempt to stop the server.

returns:

  on success: $pid of the server
  on failure: -1