Change init script for server and sentinel
* add comments
* same structure