Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2 startup copies whole path of executing user and prepends it! #5911

Open
jeffrson opened this issue Nov 1, 2024 · 0 comments
Open

pm2 startup copies whole path of executing user and prepends it! #5911

jeffrson opened this issue Nov 1, 2024 · 0 comments

Comments

@jeffrson
Copy link

jeffrson commented Nov 1, 2024

What's going wrong?

Calling pm2 startup generates the following command:
sudo env PATH=$PATH:/..path_of_current_node.. /..path_of_current_pm2 startup systemd -u user --hp /home/user

So if "path_of_current_node" is a special version (manually executed) it will not be used, if $PATH of user contains another version.

How could we reproduce this issue?

pm2 startup

Supporting information

pm2 5.4.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant