You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's going wrong?
pm2 should not start in pm2 kill or pm2 -v How could we reproduce this issue? pm2 kill
or pm2 -v before pm2 started
Supporting information
PM2 version: 2.4.6
Node version: 7.10.0
Windows
Logs in console:
C:\Users\Xin>pm2 kill
[PM2] Spawning PM2 daemon with pm2_home=C:\Users\Xin.pm2
[Keymetrics.io] [Agent updated] Agent ACTIVE - Web Access: https://app.keymetrics.io/
[PM2] PM2 Successfully daemonized
[PM2] Stopping PM2...
[PM2][WARN] No process found
[PM2] All processes have been stopped and deleted
[PM2] PM2 stopped
The text was updated successfully, but these errors were encountered:
betimer
changed the title
pm2 kill or pm2 -v` actually start and then stop the pm2 in CLI
'pm2 kill' or 'pm2 -v' actually start and then stop the pm2 in CLI
May 10, 2017
In the pm2 bin file, seems like if there's no no-daemon, startup and unstartup option, the client will always try to connect to daemon by sock and then do command job. So this issue occurs.
Maybe could split all command into 2 parts which one part needs connecting to daemon and the other dosen't ?
If that's the way to resolve this issue i could send a PR.
@poppinlp Maybe make a array of command that doesn't need the daemon to be launched and then check if the first argument is in this list ? Of course you can make a PR, we will be happy to merge it :)
What's going wrong?
pm2 should not start in
pm2 kill
orpm2 -v
How could we reproduce this issue?
pm2 kill
or p
m2 -v
before pm2 startedSupporting information
Logs in console:
C:\Users\Xin>pm2 kill
[PM2] Spawning PM2 daemon with pm2_home=C:\Users\Xin.pm2
[Keymetrics.io] [Agent updated] Agent ACTIVE - Web Access: https://app.keymetrics.io/
[PM2] PM2 Successfully daemonized
[PM2] Stopping PM2...
[PM2][WARN] No process found
[PM2] All processes have been stopped and deleted
[PM2] PM2 stopped
The text was updated successfully, but these errors were encountered: