mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
add note to README.md about startup script
This commit is contained in:
parent
76b32716c3
commit
cce0652cc0
@ -209,7 +209,11 @@ It uses **System V init script** compatible with **Ubuntu and CentOS** (maybe it
|
||||
$ pm2 startup # then follow the command instruction
|
||||
```
|
||||
|
||||
The `-u username` option permits to specify which user have to start the process at startup.
|
||||
### Running script as a different user
|
||||
|
||||
The `-u username` option permits to specify which user has to start the process at startup.
|
||||
**NOTE** that this user must have access to npm, apps and node ! So the best way is to log with this user `su -l www`, then do `pm2 startup -u www`.
|
||||
|
||||
Internally it uses `sudo -u $USER`.
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user