Create PID directory in RPM init for CASSANDRA-13046

This commit is contained in:
Michael Shuler 2017-01-04 09:56:37 -06:00
parent 8a112ca8ae
commit 0cf0f67dfb
1 changed files with 2 additions and 0 deletions

View File

@ -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