diff --git a/CHANGES.txt b/CHANGES.txt index 0bc3317892..072b7c399c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -31,9 +31,10 @@ * Cleanup and improvements to IndexInfo/ColumnIndex (CASSANDRA-15469) * Potential Overflow in DatabaseDescriptor Functions That Convert Between KB/MB & Bytes (CASSANDRA-15470) Merged from 3.0: -* Run evictFromMembership in GossipStage (CASSANDRA-15592) + * Run evictFromMembership in GossipStage (CASSANDRA-15592) Merged from 2.2: -* Allow EXTRA_CLASSPATH to work on tar/source installations (CASSANDRA-15567) + * Fix Red Hat init script on newer systemd versions (CASSANDRA-15273) + * Allow EXTRA_CLASSPATH to work on tar/source installations (CASSANDRA-15567) 4.0-alpha3 * Restore monotonic read consistency guarantees for blocking read repair (CASSANDRA-14740) diff --git a/redhat/cassandra b/redhat/cassandra index 677ff8c7ff..97a0447435 100644 --- a/redhat/cassandra +++ b/redhat/cassandra @@ -69,15 +69,16 @@ case "$1" in 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 + runuser -u $CASSANDRA_OWNR -- $CASSANDRA_PROG -p $pid_file > $log_file 2>&1 retval=$? + chown root.root $pid_file [ $retval -eq 0 ] && touch $lock_file echo "OK" ;; stop) # Cassandra shutdown echo -n "Shutdown Cassandra: " - su $CASSANDRA_OWNR -c "kill `cat $pid_file`" + runuser -u $CASSANDRA_OWNR -- kill `cat $pid_file` retval=$? [ $retval -eq 0 ] && rm -f $lock_file for t in `seq 40`; do