Changed 'exec' to 'service' for services apache2 and tomcat6