title: Can a Windows service stop itself?
body: <p>I have a Windows service whose startup type is automatic, but I want to do some checks when the service starts, and have the service stop automatically if these checks fail.  </p>
  
  <p>How can I do this?  My service is written in C#.</p>