change 'daemon starting contructure' and put log/pid files to '/var/log' or '/var/run'