-
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
Add processes without starting them #3759
Comments
Hi @bisubus I think we need a reflection about processes list and how to manage this. |
I had created a droplet snapshot the other day with the purpose of being able to recreate it for testing some software at any time. Part of this relied on some scripts that called "pm2 start process" which had already been added to PM2, but were stopped because they required a non-pm2 process to be started first. My solution was to this worked fine, in all honesty, but it would have been nice to
I think this is OK because you pretty much have to explicitly stop a process for it to be stopped, as far as I know? but then again, a one-liner in crontab functionally solved it for me, so maybe its a nonissue. |
We have several daemons that are similar (one for loading live data, one for loading test / replay data) that need to be turned on / off by users when they would like them to be running. For our purposes, it would be nice to be able to load configuration for a daemon but in the |
This feature would be very useful together with cron_restart. You might want to create the process but it shouldn't be run right away. It would only be run when it gets restarted by the cron_restart command. Is there any chance this feature might get implemented in the near future? Or is there any workaround for it? |
Hi, any updates on this? |
I am facing this same problem, when my cicd reloads all the processes in the config file, the cron also runs despite having |
I'm going through the issues to find mentions about not auto-starting a new process, which I now created a PR for: |
Feature landed Update PM2 to 5.4.0 $ npm install pm2@5.4.0 -g
$ pm2 update |
This is a feature request that applies to any PM2 version.
Currently processes should be started in order to be added to process list and be referred with their names. This provides undesirable side effects when a process shouldn't be started right now.
Given
apps.json
configuration file with several applications:And current process list:
pm2 restart ./apps.json
adds processes from the configuration and forces their statuses to be online:While
pm2 stop ./apps.json
doesn't modify process list, only sets stopped status for known processes:The suggestion is to update process list from configuration file and set stopped status with
pm2 stop ./apps.json
(likely with additional key):And to not change process status (stopped by default) with
pm2 refresh ./apps.json
:The text was updated successfully, but these errors were encountered: