{"action":"created","issue":{"url":"https://api.github.com/repos/ohjames/smell-baron/issues/7","repository_url":"https://api.github.com/repos/ohjames/smell-baron","labels_url":"https://api.github.com/repos/ohjames/smell-baron/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/ohjames/smell-baron/issues/7/comments","events_url":"https://api.github.com/repos/ohjames/smell-baron/issues/7/events","html_url":"https://github.com/ohjames/smell-baron/issues/7","id":159941229,"number":7,"title":"A delay of 10s while stopping the container","user":{"login":"sudhaker","id":18218323,"avatar_url":"https://avatars.githubusercontent.com/u/18218323?v=3","gravatar_id":"","url":"https://api.github.com/users/sudhaker","html_url":"https://github.com/sudhaker","followers_url":"https://api.github.com/users/sudhaker/followers","following_url":"https://api.github.com/users/sudhaker/following{/other_user}","gists_url":"https://api.github.com/users/sudhaker/gists{/gist_id}","starred_url":"https://api.github.com/users/sudhaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudhaker/subscriptions","organizations_url":"https://api.github.com/users/sudhaker/orgs","repos_url":"https://api.github.com/users/sudhaker/repos","events_url":"https://api.github.com/users/sudhaker/events{/privacy}","received_events_url":"https://api.github.com/users/sudhaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-13T12:42:23Z","updated_at":"2016-06-13T13:00:27Z","closed_at":"2016-06-13T12:58:56Z","body":"This is the 'entrypoint.sh' for my alpine container (nginx + php; all-in-one container)\r\n\r\nexec /bin/smell-baron \\\r\n**-f nginx -g \"daemon off;\"** \\\r\n\"---\" \\\r\n**php-fpm**\r\n\r\nBoth processes exits immediately if I issue a SIGTERM from inside the container but a \"docker stop\" is only killing nginx and php-fpm continues to run until 10s is elapsed and SIGKILL \r\n\r\nEverything working great and I love the tiny init binary but a delay of 10s while stopping the container is bothering me. Is this by design or I'm missing something?\r\n\r\n> while true; do date; sudo docker exec alpined-nginx-php /bin/ps; sleep 1; done\r\n\r\n```\r\nMon Jun 13 08:32:28 EDT 2016\r\nPID   USER     TIME   COMMAND\r\n    1 root       0:00 /bin/smell-baron -f nginx -g daemon off; --- php-fpm\r\n    7 root       0:00 nginx: master process nginx -g daemon off;\r\n    8 root       0:00 php-fpm: master process (/etc/php/php-fpm.conf)\r\n    9 nobody     0:00 nginx: worker process\r\n   10 nobody     0:00 nginx: worker process\r\n   11 nobody     0:00 php-fpm: pool www\r\n   12 nobody     0:00 php-fpm: pool www\r\n   96 root       0:00 /bin/ps\r\nMon Jun 13 08:32:29 EDT 2016\r\nPID   USER     TIME   COMMAND\r\n    1 root       0:00 /bin/smell-baron -f nginx -g daemon off; --- php-fpm\r\n    8 root       0:00 php-fpm: master process (/etc/php/php-fpm.conf)\r\n   11 nobody     0:00 php-fpm: pool www\r\n   12 nobody     0:00 php-fpm: pool www\r\n  102 root       0:00 /bin/ps\r\nMon Jun 13 08:32:30 EDT 2016\r\nPID   USER     TIME   COMMAND\r\n    1 root       0:00 /bin/smell-baron -f nginx -g daemon off; --- php-fpm\r\n    8 root       0:00 php-fpm: master process (/etc/php/php-fpm.conf)\r\n   11 nobody     0:00 php-fpm: pool www\r\n   12 nobody     0:00 php-fpm: pool www\r\n  107 root       0:00 /bin/ps\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/ohjames/smell-baron/issues/comments/225573728","html_url":"https://github.com/ohjames/smell-baron/issues/7#issuecomment-225573728","issue_url":"https://api.github.com/repos/ohjames/smell-baron/issues/7","id":225573728,"user":{"login":"ohjames","id":97685,"avatar_url":"https://avatars.githubusercontent.com/u/97685?v=3","gravatar_id":"","url":"https://api.github.com/users/ohjames","html_url":"https://github.com/ohjames","followers_url":"https://api.github.com/users/ohjames/followers","following_url":"https://api.github.com/users/ohjames/following{/other_user}","gists_url":"https://api.github.com/users/ohjames/gists{/gist_id}","starred_url":"https://api.github.com/users/ohjames/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohjames/subscriptions","organizations_url":"https://api.github.com/users/ohjames/orgs","repos_url":"https://api.github.com/users/ohjames/repos","events_url":"https://api.github.com/users/ohjames/events{/privacy}","received_events_url":"https://api.github.com/users/ohjames/received_events","type":"User","site_admin":false},"created_at":"2016-06-13T13:00:27Z","updated_at":"2016-06-13T13:00:27Z","body":"BTW I would just sent entry point to the smell-baron -f bit and use `cmd` for the rest."}}
{"actor":{"display_login":"ohjames"}}