Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 370DA181C9 for ; Mon, 29 Jun 2015 23:15:05 +0000 (UTC) Received: (qmail 57447 invoked by uid 500); 29 Jun 2015 23:15:05 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 57406 invoked by uid 500); 29 Jun 2015 23:15:05 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 57391 invoked by uid 99); 29 Jun 2015 23:15:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jun 2015 23:15:05 +0000 Date: Mon, 29 Jun 2015 23:15:04 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-925) Launch scripts should use a PIDfile 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/ACCUMULO-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606635#comment-14606635 ] Josh Elser commented on ACCUMULO-925: ------------------------------------- It could. The issue at the moment is that stopping is just a manual hand-jam thing. Ideally, when we move towards a script dedicated to starting and stopping (this patch really only contains starting), we can consolidate the two SSHs into one. My only concern at the time is that we would double the number of SSH calls we make, but I don't think that is the case looking at the old scripts. > Launch scripts should use a PIDfile > ----------------------------------- > > Key: ACCUMULO-925 > URL: https://issues.apache.org/jira/browse/ACCUMULO-925 > Project: Accumulo > Issue Type: Improvement > Components: scripts > Reporter: Christopher Tubbs > Assignee: Billie Rinaldi > Fix For: 1.8.0 > > Attachments: ACCUMULO-925.1.patch, ACCUMULO-925.2.patch > > > Start scripts should create PIDfiles to store the PID of running processes in a well known location (example: /var/run/accumulo/tserver.pid or $ACCUMULO_HOME/tserver.pid), for the following benefits: > # Identify running services on a machine without executing and parsing the system process list, so stop scripts can kill them when they are unresponsive. > # Prevent multiple instances of the same application from starting up (an environment variable for the location of the PIDfile can be used to allow multiple instances if it is desirable to do so). > # Potentially provide an alternate mechanism for terminating a process by deleting its PIDfile rather than its lock in Zookeeper. -- This message was sent by Atlassian JIRA (v6.3.4#6332)