mirror of https://github.com/apache/cassandra
Create PID directory in RPM init for CASSANDRA-13046
This commit is contained in:
parent
8a112ca8ae
commit
0cf0f67dfb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue