title: Starting a PM2 process as a user with root privileges
body: <p>Here's the problem, my node app requires root privileges to use <code>os.setPriority</code> on child processes.</p>
  <p>So I need to run the app with sudo, but I want my .pm2 folder to remain in my /home/user directory so my user can access the log files, not /root.</p>
  <p>If I run <code>pm2 start app.js</code> as user, no root privileges.</p>
  <p>If I run <code>sudo pm2 start app.js</code> it saves under /root/.pm2 (inaccessible log files for user)</p>
  <p>If I run <code>sudo PM2_HOME=/home/user/.pm2 pm2 start app.js</code> I still don't have permission to use os.setPriority! And if I run <code>sudo pm2 ls</code> afterwards it's not there, it runs on the user daemon. The only difference to this command and the first is when I run <code>pm2 ls</code> as the user, it lists the process as 'root' under the user column.</p>
  <p>Any ideas?</p>