Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Starman-0.2008_1
- Plack-0.9971
- Net::Server-0.97
- Debian 5
- Kernel 2.6.26-2-686
- perl, v5.10.0 built for i486-linux-gnu-thread-multi
- procfs not installed
- How to reproduce:
- test.psgi:
- -----------------
- use strict;
- use Plack::Builder;
- my $app = sub {
- my $env = shift;
- return [
- 200,
- [ 'Content-Type', 'text/plain' ],
- [ 'Hello World!' ],
- ];
- };
- builder {
- $app;
- };
- -----------------
- /usr/local/bin/starman --workers 5 --pid /tmp/test.pid --port 4000 --preload-app --daemonize --user web --group web test.psgi
- ps aux | grep starman
- web 2750 0.2 0.5 7704 5688 ? S<s 13:03 0:00 starman master --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- web 2751 0.0 0.4 7704 4768 ? S< 13:03 0:00 starman worker --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- web 2752 0.0 0.4 7704 4656 ? S< 13:03 0:00 starman worker --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- web 2753 0.0 0.4 7704 4656 ? S< 13:03 0:00 starman worker --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- web 2754 0.0 0.4 7704 4656 ? S< 13:03 0:00 starman worker --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- web 2755 0.0 0.4 7704 4656 ? S< 13:03 0:00 starman worker --workers 5 --pid /tmp/test.pid --port 4000 --daemonize --user web --group web test.psgi
- kill -HUP 2750
- # previous children are all killed
- ps aux | grep starman
- web 2750 0.1 0.5 7352 5764 ? S<s 13:03 0:00 starman master
- web 2772 0.0 0.0 1836 504 pts/0 S<+ 13:05 0:00 grep starman
- # wait a few seconds, new children are started, but defunct
- ps aux | grep starman
- web 2750 0.1 0.5 7352 5772 ? S<s 13:03 0:00 starman master
- web 2797 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
- web 2798 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
- web 2799 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
- web 2800 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
- web 2801 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
Add Comment
Please, Sign In to add comment