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

forever stop app.js stops other app.js files too! #481

Closed
ghost opened this issue Oct 15, 2013 · 3 comments
Closed

forever stop app.js stops other app.js files too! #481

ghost opened this issue Oct 15, 2013 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 15, 2013

Hi,

I have 2 node apps running. Both have app.js file in their root folder. I run them with

forever -o log/app.log -e log/app.err.log start app.js

It works properly. But, if i step in to any one of the app's root folder & do
forever stop app.js, forever kills both the app's.

So every time, If I want to restart any app, I am ending up in restarting both app's.

What is the solution for this?

$ uname -a
Linux xxxxx 3.10.10-200.fc19.x86_64 #1 SMP Thu Aug 29 19:05:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
$ node -v
v0.10.18
$ forever -v
v0.10.8

Thank you!

@lonso
Copy link

lonso commented Dec 2, 2013

the same question of you.
who can answer us..
thank you.

@egmont1227
Copy link

you can kill the processes by their id

forever list will output a list of running processes

data:        uid  command         script    forever pid   logfile                   uptime
data:    [0] yoNQ /usr/bin/nodejs app.js 2084    2090  /var/log/node/app1.log 5:15:9:23.577 
data:    [1] lYCi /usr/bin/nodejs app.js 22492   22545 /var/log/node/app2.log 0:0:0:0.821 

You can kill the process pid 22545 with forever stop 1. You can also use forever stop lYCi

@julianduque
Copy link
Contributor

Thanks @egmont1227 that's the answer :)

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

3 participants