fixed restart bug in centos init script
tests for centos init script