title: Windows service OnStart not called on AWS EC2
body: <p>I have a windows service developed in C#.NET. It is installed on an AWS EC2 instance which is associated with an Elastic Beanstalk instance.</p>
  
  <p>When I install the service and start, its OnStart event called successfully, I even tried restarting the server and this time also OnStart event of the windows service called successfully. Problem is when new EC2 instance is created by the load balancer (because previous instance was down) that time my service also get started but OnStart event was not called. </p>
  
  <p>I am sure that OnStart was not called because I didn't get the expected result which supposed to be there after calling OnStart event.</p>
  
  <p>Please help if you have any idea.</p>