title: Hazelcast server as a linux service
body: <p>How to run hazelcast server as a linux service in production environments ?</p>
  
  <p>java -server -cp hazelcast.jar com.hazelcast.examples.StartServer </p>
  
  <p>StartServer runs the server with outputs to std terminal, what's the easiest way to run it as a linux service and write logs to a file
  &amp; how do I specify min and max memory allocation for Hazelcast.</p>
  
  <p>I have to set it up as a service in an EC2 instance and bundle it. When EC2 autoscaling starts an instance, hazelcast server will start and join the cluster. </p>
  
  <p>Thanks</p>