Skip to content

Instantly share code, notes, and snippets.

@kmamykin
Created July 31, 2011 18:27
Show Gist options
  • Save kmamykin/1117047 to your computer and use it in GitHub Desktop.
Save kmamykin/1117047 to your computer and use it in GitHub Desktop.
foreman not terminating process
$ cat Procfile
web: rails server thin -p $PORT
$ gem list | grep foreman
foreman (0.19.0)
$ ps aux | grep thin
kmamykin 13773 0.0 0.0 4156 864 pts/2 S+ 14:22 0:00 grep thin
$ foreman start
14:22:36 web.1 | started with pid 13897
14:22:50 web.1 | => Booting Thin
14:22:50 web.1 | => Rails 3.1.0.rc4 application starting in development on http://0.0.0.0:5000
14:22:50 web.1 | => Call with -d to detach
14:22:50 web.1 | => Ctrl-C to shutdown server
14:22:58 web.1 | >> Thin web server (v1.2.11 codename Bat-Shit Crazy)
14:22:58 web.1 | >> Maximum connections set to 1024
14:22:58 web.1 | >> Listening on 0.0.0.0:5000, CTRL+C to stop
^CSIGINT received
14:23:24 system | sending SIGTERM to all processes
14:23:27 system | sending SIGKILL to all processes
14:23:27 web.1 | process terminated
14:23:27 system | sending SIGTERM to all processes
$ ps aux | grep thin
kmamykin 13903 38.0 2.0 68620 61836 ? Sl 14:22 0:22 /home/kmamykin/.rvm/rubies/ruby-1.9.2-p180/bin/ruby script/rails server thin -p 5000
kmamykin 15466 0.0 0.0 4156 868 pts/2 S+ 14:23 0:00 grep thin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment