Add init script compatibility with centos