The attached patch includes serverlog rotation with minimal shared memory usage as discussed and functions to access it.
Regards,Andreas