{"action":"closed","issue":{"url":"https://api.github.com/repos/foreverjs/forever/issues/483","labels_url":"https://api.github.com/repos/foreverjs/forever/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/foreverjs/forever/issues/483/comments","events_url":"https://api.github.com/repos/foreverjs/forever/issues/483/events","html_url":"https://github.com/foreverjs/forever/issues/483","id":21191037,"number":483,"title":"forever list says \"No forever processes running\"","user":{"login":"yeldarby","id":870796,"avatar_url":"https://avatars.githubusercontent.com/u/870796?v=3","gravatar_id":"","url":"https://api.github.com/users/yeldarby","html_url":"https://github.com/yeldarby","followers_url":"https://api.github.com/users/yeldarby/followers","following_url":"https://api.github.com/users/yeldarby/following{/other_user}","gists_url":"https://api.github.com/users/yeldarby/gists{/gist_id}","starred_url":"https://api.github.com/users/yeldarby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeldarby/subscriptions","organizations_url":"https://api.github.com/users/yeldarby/orgs","repos_url":"https://api.github.com/users/yeldarby/repos","events_url":"https://api.github.com/users/yeldarby/events{/privacy}","received_events_url":"https://api.github.com/users/yeldarby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/foreverjs/forever/labels/next-major","name":"next-major","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2013-10-17T22:55:36Z","updated_at":"2015-12-15T21:03:27Z","closed_at":"2015-12-15T21:03:27Z","body":"I'm starting a forever instance on server boot via root's crontab.\r\n\r\n    @reboot /usr/local/bin/forever start -w --watchDirectory /home/ubuntu/code/path/to/my/files /home/ubuntu/code/path/to/my/files/index.js\r\n\r\nBut although the script is running (I can hit the server via port 80) I can't get its logs or restart it or anything because forever doesn't recognize that it's running.\r\n\r\n    ubuntu@ip-10-168-82:~$ ps aux | grep forever\r\n    root       902  4.1  2.3 969836 39824 ?        Ssl  22:49   0:03 /usr/local/bin/node /usr/local/lib/node_modules/forever/bin/monitor /home/ubuntu/code/path/to/my/files/index.js\r\n    ubuntu    1165  0.0  0.0   8156   956 pts/0    S+   22:50   0:00 grep --color=auto forever\r\n    ubuntu@ip-10-168-82:~$ sudo forever list\r\n    info:    No forever processes running\r\n    ubuntu@ip-10-168-82:~$ forever list\r\n    info:    No forever processes running\r\n\r\nIt works properly if I run it directly using `sudo forever...` (I can see the process with `sudo forever list`) but when it runs from root's crontab on boot it gets lost somewhere."}}