Add init script for CentOS/RedHat and fix minor issues in Ubuntu version

#### Reviewers
@flopezag