Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D5A10DB1F for ; Fri, 17 Aug 2012 17:49:38 +0000 (UTC) Received: (qmail 50385 invoked by uid 500); 17 Aug 2012 17:49:38 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 50281 invoked by uid 500); 17 Aug 2012 17:49:38 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 50273 invoked by uid 99); 17 Aug 2012 17:49:38 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2012 17:49:38 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 601D52C5BE3 for ; Fri, 17 Aug 2012 17:49:38 +0000 (UTC) Date: Sat, 18 Aug 2012 04:49:38 +1100 (NCT) From: "Patrick Taylor Ramsey (JIRA)" To: bigtop-dev@incubator.apache.org Message-ID: <504314370.24458.1345225778394.JavaMail.jiratomcat@arcas> In-Reply-To: <179443289.21821.1345160978356.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (BIGTOP-691) flume gets killed too fast when the service is asked to stop MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BIGTOP-691?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13436914#comment-13436914 ] Patrick Taylor Ramsey commented on BIGTOP-691: ---------------------------------------------- +1 LGTM. > flume gets killed too fast when the service is asked to stop > ------------------------------------------------------------ > > Key: BIGTOP-691 > URL: https://issues.apache.org/jira/browse/BIGTOP-691 > Project: Bigtop > Issue Type: Bug > Components: Init scripts > Affects Versions: 0.4.0 > Reporter: Roman Shaposhnik > Assignee: Roman Shaposhnik > Fix For: 0.5.0 > > Attachments: BIGTOP-691.patch.txt > > > The flume stop script does the following: > kill -TERM ${FLUME_PID} &>/dev/null > sleep 5 > kill -KILL ${FLUME_PID} &>/dev/null > It is not recommended to kill -9 flume while it is shutting down. > The correct approach is to poll to see if the pid is up every second or so, after sending the intitial TERM signal, then after some long period of time (60 seconds) if the pid is still alive then kill -9 would be appropriate. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira