Guest User

Untitled

a guest
Jan 22nd, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. Starman-0.2008_1
  2. Plack-0.9971
  3. Net::Server-0.97
  4.  
  5. Debian 5
  6. Kernel 2.6.26-2-686
  7. perl, v5.10.0 built for i486-linux-gnu-thread-multi
  8.  
  9. procfs not installed
  10.  
  11. How to reproduce:
  12.  
  13. test.psgi:
  14. -----------------
  15. use strict;
  16. use Plack::Builder;
  17.  
  18. my $app = sub {
  19. my $env = shift;
  20.  
  21. return [
  22. 200,
  23. [ 'Content-Type', 'text/plain' ],
  24. [ 'Hello World!' ],
  25. ];
  26. };
  27.  
  28. builder {
  29. $app;
  30. };
  31. -----------------
  32.  
  33. /usr/local/bin/starman --workers 5 --pid /tmp/test.pid --port 4000 --preload-app --daemonize --user web --group web test.psgi
  34.  
  35. ps aux | grep starman
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42.  
  43. kill -HUP 2750
  44.  
  45. # previous children are all killed
  46. ps aux | grep starman
  47. web 2750 0.1 0.5 7352 5764 ? S<s 13:03 0:00 starman master
  48. web 2772 0.0 0.0 1836 504 pts/0 S<+ 13:05 0:00 grep starman
  49.  
  50. # wait a few seconds, new children are started, but defunct
  51. ps aux | grep starman
  52. web 2750 0.1 0.5 7352 5772 ? S<s 13:03 0:00 starman master
  53. web 2797 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
  54. web 2798 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
  55. web 2799 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
  56. web 2800 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
  57. web 2801 0.0 0.0 0 0 ? Z< 13:06 0:00 [starman] <defunct>
Add Comment
Please, Sign In to add comment