Fix to run under CentOS6

Fixed so daemon starts/stops under centos6.