void (* fn) (void *) is the callback function.
void *data is the parameter passed to the callback function when the server is restarted.