I have a daemon that must be run as root on startup.
I use pm2 to start other apps but can not figure out if it can start an app as root. Can it be done?
If not,
You should start pm2 as a root, (sudo pm2 start app.js), then your app will start as a root