mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-28 07:51:55 +00:00
Update cassandra-install.sh
test without service file
This commit is contained in:
parent
71cafc9d0f
commit
967880c664
@ -37,25 +37,8 @@ sed -i -e 's/^rpc_address: localhost/#rpc_address: localhost/g' -e 's/^# rpc_int
|
|||||||
msg_ok "Installed Cassandra"
|
msg_ok "Installed Cassandra"
|
||||||
|
|
||||||
msg_info "Creating Service"
|
msg_info "Creating Service"
|
||||||
cat <<EOF >/etc/systemd/system/cassandra.service
|
|
||||||
[Unit]
|
|
||||||
Description=Cassandra
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
#systemctl enable -q --now cassandra.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
|
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user