jon-hall / pm2-windows-service

Easily install (and uninstall) PM2 as a Windows service
231 stars 66 forks source link

Running service as specific user #64

Closed jainpradeep closed 2 years ago

jainpradeep commented 4 years ago

My node process acesses a network folder. Pm2-windows-service runs the node process but as it is running with administrator it can not acess the network folder. Can a daemon process run as a specific user?

steffenstolze commented 4 years ago

hmm.. install the pm2-windows-service under a user that has the necessary network access rights. then it will create a windows service. go to the windows services, select your service and adjust the user

this is how i do it.

jon-hall commented 2 years ago

Closing this as the package is now deprecated, users should migrate to pm2-installer.