Fix httpd services and fix the pid detection