What civilization first developed civil service system?

The Chinese civilisation was the first to have a civil service where joining it was open to anyone who could pass the entrance examination. As such it was the first modern civil service system.