fixed init script for Centos Linux, now it runs well on Debian and RH