Update cassandra-install.sh

test without service file
This commit is contained in:
tteckster 2024-01-20 09:13:32 -05:00 committed by GitHub
parent 71cafc9d0f
commit 967880c664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,25 +37,8 @@ sed -i -e 's/^rpc_address: localhost/#rpc_address: localhost/g' -e 's/^# rpc_int
msg_ok "Installed Cassandra"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/cassandra.service
[Unit]
Description=Cassandra
After=network.target
[Service]
PIDFile=/tmp/cassandra.pid
ExecStart=/opt/cassandra/bin/cassandra -p /tmp/cassandra.pid -R
StandardOutput=append:/tmp/cassandra.log
StandardError=append:/tmp/cassandra-error.log
LimitNOFILE=100000
LimitMEMLOCK=infinity
LimitNPROC=32768
LimitAS=infinity
[Install]
WantedBy=default.target
EOF
systemctl enable -q --now cassandra.service
#systemctl enable -q --now cassandra.service
msg_ok "Created Service"
motd_ssh