cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mshu...@apache.org
Subject [05/15] cassandra git commit: Create PID directory in RPM init for CASSANDRA-13046
Date Wed, 04 Jan 2017 16:01:57 GMT
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 <michael@pbandjelly.org>
Authored: Wed Jan 4 09:56:37 2017 -0600
Committer: Michael Shuler <michael@pbandjelly.org>
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


Mime
View raw message