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

"./etc/init.d/traveler-mongo-express start" fails to start service on first try #322

Open
craigmcchesney opened this issue Jun 29, 2022 · 2 comments

Comments

@craigmcchesney
Copy link

This one took me a lot of time to figure out, maybe we could make a change so that a new system can be brought up more easily. Because etc/init.d/traveler-mongo-express uses "pm2 restart" instead of "pm2 start" in handling the "start" option, it fails the first time it is used, and pm2 must be used manually to start the mongo express service. The script then works on subsequent executions. This should either be changed to use "pm2 start", or at least print a giant warning message that there is a special case for the first script invocation, and print the command line to run pm2 manually.

@craigmcchesney
Copy link
Author

This issue occurs after each reboot, the manual command:

pm2 start /opt/traveler/support/nodejs/node_modules/mongo-express/app.js

must be used to start the service before "etc/init.d/traveler-mongo-express start" can be used.

@craigmcchesney
Copy link
Author

I see that there is a "startOrRestart" command for pm2, this would probably be better than just "restart" because that fails after the system is rebooted.

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