Support for modifying the runas user
jarosser06 opened this issue · 4 comments
jarosser06 commented
Its generally not a good practice to run applications as a privileged user so there should be a user option that allows pm2 to be run as that user.
miguelcnf commented
I agree - afaik pm2 has 2 ways of doing this:
- starting as the current shell user (start actions)
- starting as the user specified in the init script (startup action)
Neither is based on the configuration file schema tho.
We'll want to cover both scenarios.
jarosser06 commented
I have a PR incoming for this.
jarosser06 commented
Added in #5