title: How to stop/kill airflow scheduler started in daemon mode
body: <p>I and new to airflow and accidentally started airflow scheduler in daemon mode. Now, I want to kill the scheduler and possibly restart it. I tried doing </p>
  
  <pre><code>    sudo kill -9 &lt;list of pids&gt;
      pkill &lt;name&gt;
  </code></pre>
  
  <p>nothing is happening. When I run</p>
  
  <pre><code>    ps aux | grep 'airflow scheduler'
  </code></pre>
  
  <p>I see these entries:</p>
  
  <pre><code>    user1   2907  6.0  1.0 329788 62996 ?        Sl   17:37   1:26 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
      user1   2909  0.0  0.9 327576 58948 ?        Sl   17:37   0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
      user1   2910  0.0  0.9 327576 58944 ?        Sl   17:37   0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
      user1   2911  0.0  0.9 327576 58944 ?        Sl   17:37   0:00 /users/user1/anaconda2/bin/python /users/user1/anaconda2/bin/airflow scheduler -D
  </code></pre>
  
  <p>...and so on for 35 lines with different pids. </p>
  
  <p>Any recommendation as to how I can stop/kill airflow scheduler without restarting my machine. I have also checked the pid file for scheduler and tried killing that pid but no effects. </p>
  
  <p>Any help is appreciated. Thanks!</p>