Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"forever list" says "No forever process running" but it is running an app

I have started an app with

forever start app.js

After that I typed,

forever list

and it shows that

The "sys" module is now called "util". It should have a similar interface.
info:   No forever processes running

But I checked my processes with

ps aux | grep node

and it shows that

root      1184  0.1  1.5 642916  9672 ?        Ss   05:37   0:00 node     
/usr/local/bin/forever start app.js
root      1185  0.1  2.1 641408 13200 ?        Sl   05:37   0:00 node 
/var/www/app.js
ubuntu    1217  0.0  0.1   7928  1060 pts/0    S+   05:41   0:00 grep --color=auto node

I cannot control over the process, since I cannot list the process in "forever list"

How can I let "Forever" knowing its running processes and let having control over its running processes.

like image 685
jwchang Avatar asked Jan 05 '12 05:01

jwchang


1 Answers

forever list should be invoked with same user as that of processes. Generally it is root user (in case of ubuntu upstart unless specified) so you can switch to root user using sudo su and then try forever list.

PS. Moved to pm2 recently which has lot more features than forever.

like image 56
Kunal Kapadia Avatar answered Oct 25 '22 07:10

Kunal Kapadia