yes, seems preStart will be called by postRestart, and so it seems to me the flow will be prerestart -> postStop , postRestart -> preStart, So I think it should be ok