title: How can I run a CLI Application as a Windows Service?
body: <p>Say I have a third party Application that does background work, but prints out all errors and messages to the console. This means, that currently, we have to keep a user logged on to the server, and restart the application (double-click) every time we reboot.</p>
  
  <p><em>Not so very cool.</em></p>
  
  <p>I was kind of sure, that there was an easy way to do this - a generic service wrapper, that can be configured with a log file for <code>stdout</code> and <code>stderr</code>.</p>
  
  <p>I did check <code>svchost.exe</code>, but <a href="http://www.google.ch/url?sa=t&amp;source=web&amp;ct=res&amp;cd=2&amp;url=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F314056&amp;ei=38DlSPGDLYbS0gWaupyXCw&amp;usg=AFQjCNFuvFUsrk_qf9ATt6N_Csh4dMJZnw&amp;sig2=UZLsm65gFNCdsUqszVgHWQ" rel="noreferrer">according to this site</a>, its only for DLL stuff. Pity.</p>
  
  <p><strong>EDIT:</strong> The application needs to be started from a batch file. FireDaemon seems to do the trick, but I think it is a bit overkill, for something that can be done in &lt;10 lines of python code... Oh well, <em>Not Invented Here</em>...</p>