configurator: document net.core.somaxconn sysctl dependency
[unicorn.git] / t / t0021-process_detach.sh
blobf03c497e61d5982be8f2bf407173f019b7061419
1 #!/bin/sh
2 . ./test-lib.sh
4 t_plan 5 "Process.detach on forked background process works"
6 t_begin "setup and startup" && {
7 t_fifos process_detach
8 unicorn_setup
9 TEST_FIFO=$process_detach \
10 unicorn -E none -D detach.ru -c $unicorn_config
11 unicorn_wait_start
14 t_begin "read detached PID with HTTP/1.0" && {
15 detached_pid=$(curl -0 -sSf http://$listen/)
16 t_info "detached_pid=$detached_pid"
19 t_begin "read background FIFO" && {
20 test xHIHI = x"$(cat $process_detach)"
23 t_begin "killing succeeds" && {
24 kill $unicorn_pid
27 t_begin "check stderr" && check_stderr
29 t_done