Update cassandra-install.sh

test without service file
pull/2375/head
tteckster 10 months ago committed by GitHub
parent 71cafc9d0f
commit 967880c664
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save

Powered by BW's shoe-string budget.