-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 fails on rhel 5.10, but easy fix included #524
Comments
Nice, should we specified that in the command i.e use https://github.com/Unitech/pm2/blob/master/lib/CLI.js#L314 |
It looks like /sbin is added by default on newer versions of rhel, but afaik, it wouldn't hurt to specify the full path, unless chkconfig is ever located somewhere else? |
Try "sudo -i pm2 startup centos", note that "-i" flag is important here.
Full path is a bad idea for sure, but I suppose pm2 could modify $PATH temporarily. |
+1 |
Assuming this is fixed, please get back to us if it is not. |
running pm2 startup centos -u nodeuser gives:
this fails because chkconfig lives in /sbin/ which isn't on the PATH by default. Adding it temporarily to the terminal session:
lets the script succeed. Don't think the script should be changed, but maybe a better message about chkconfig-
The text was updated successfully, but these errors were encountered: