title: pm2 with systemd and passing node argument
body: <p>I want to start node with pm2 and environment variables like <code>--nouse-idle-notification</code> or <code>--max-old-space-size=2048</code>.</p>
  <p>However, whatever I do, it is not passing the node variables. I start my app with pm2 and a configuration file. The configuration file looks like:</p>
  <pre><code>{
    &quot;apps&quot; : [{
      &quot;env&quot;: {
        &quot;NODE_PATH&quot;: &quot;/usr/bin/node&quot;,
        &quot;interpreter_args&quot;: &quot;--max-old-space-size=2048 --nouse-idle-notification&quot;
      },
      &quot;env_development&quot;: {
        &quot;NODE_ENV&quot;: &quot;development&quot;
      },
      &quot;env_production&quot; : {
         &quot;NODE_ENV&quot;: &quot;production&quot;,
         &quot;APP_TYPE&quot;: &quot;web&quot;
      },
      &quot;exec_mode&quot;   : &quot;fork&quot;,
      &quot;name&quot;        : &quot;MyApp&quot;,
      &quot;script&quot;      : &quot;/opt/myapp/app.js&quot;,
      &quot;watch&quot;       : false,
      &quot;out_file&quot;    : &quot;/var/log/app.log&quot;,
      &quot;error_file&quot;  : &quot;/var/log/app.log&quot;,
      &quot;combine_logs&quot;: true,
      &quot;node_args&quot;: &quot;--max-old-space-size=2048 --nouse-idle-notification&quot;,
      &quot;args&quot;: &quot;--max-old-space-size=2048 --nouse-idle-notification&quot;
    }]
  }
  </code></pre>
  <p>(as you can see I try to pass in the node variables in multiple ways)</p>
  <p>I then start the app with:</p>
  <pre><code>pm2 restart pathtojsonfile --env production
  </code></pre>
  <p>Everything is starting up properly and I see variables like &quot;MY_APP&quot; in my code. However, now when I look at the process with &quot;top&quot; I only see:</p>
  <pre><code>node /opt/myapp/app.js
  </code></pre>
  <p>When I start the app with forever or manually I can see the process like:</p>
  <pre><code>node --max-old-space-size=2048 --nouse-idle-notification /opt/myapp/app.js
  </code></pre>
  <p>Is pm2 just not showing those node arguments or are they really not passed in? (The pm2 started process uses less memory)</p>