title: How to run airflow scheduler as a daemon process?
body: <p>I am new to Airflow. I am trying to run airflow scheduler as a daemon process, but the process does not live for long. I have configured "LocalExecutor" in airflow.cfg file and ran the following command to start the scheduler.(I am using Google compute engine and accessing server via PuTTY)</p>
  
  <pre><code>airflow scheduler --daemon --num_runs=5 --log-file=/root/airflow/logs/scheduler.log
  </code></pre>
  
  <p>When I run this command, the airflow scheduler starts and I can see the airflow-scheduler.pid file in my airflow home folder, but the process does not live for long. When I close the PuTTY session and reconnect to the server, I cannot find the scheduler process. Am I missing something? How can I run the airflow scheduler as a daemon process?</p>