title: Check if service is installed
body: <p>How can I check if a service is installed on the node (debian and cent os/amazon)?</p>
  
  <p>I want to stop and disable the service if it is installed. If the services doesn´t exist I´m getting an exception at service stopping:
  <em>Chef::Exceptions::Service: /etc/init.d/service does not exist!</em></p>
  
  <p>Best regards
  André</p>