Changed the RedHat/CentOS/... deamon init file

Th original was'nt working on CentOS, changed it and added some more config and verification for log and pid file.