Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 43137200C01 for ; Wed, 4 Jan 2017 17:01:55 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3FCCC160B4A; Wed, 4 Jan 2017 16:01:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B5432160B39 for ; Wed, 4 Jan 2017 17:01:54 +0100 (CET) Received: (qmail 43383 invoked by uid 500); 4 Jan 2017 16:01:53 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 43008 invoked by uid 99); 4 Jan 2017 16:01:53 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jan 2017 16:01:53 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 2FCCBDFB32; Wed, 4 Jan 2017 16:01:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: mshuler@apache.org To: commits@cassandra.apache.org Date: Wed, 04 Jan 2017 16:01:57 -0000 Message-Id: <6b602978456548318f74351831f10909@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [05/15] cassandra git commit: Create PID directory in RPM init for CASSANDRA-13046 archived-at: Wed, 04 Jan 2017 16:01:55 -0000 Create PID directory in RPM init for CASSANDRA-13046 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/0cf0f67d Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/0cf0f67d Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/0cf0f67d Branch: refs/heads/cassandra-3.X Commit: 0cf0f67dfb770e0cb321d77398cf8916d52386e5 Parents: 8a112ca Author: Michael Shuler Authored: Wed Jan 4 09:56:37 2017 -0600 Committer: Michael Shuler Committed: Wed Jan 4 09:56:37 2017 -0600 ---------------------------------------------------------------------- redhat/cassandra | 2 ++ 1 file changed, 2 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/0cf0f67d/redhat/cassandra ---------------------------------------------------------------------- diff --git a/redhat/cassandra b/redhat/cassandra index 3e59534..3079487 100644 --- a/redhat/cassandra +++ b/redhat/cassandra @@ -53,6 +53,8 @@ case "$1" in start) # Cassandra startup echo -n "Starting Cassandra: " + [ -d `dirname "$pid_file"` ] || \ + install -m 755 -o $CASSANDRA_OWNR -g $CASSANDRA_OWNR -d `dirname $pid_file` su $CASSANDRA_OWNR -c "$CASSANDRA_PROG -p $pid_file" > $log_file 2>&1 retval=$? [ $retval -eq 0 ] && touch $lock_file