Skip to content

Instantly share code, notes, and snippets.

@Nonymus
Created October 17, 2017 20:34
Show Gist options
  • Save Nonymus/0d0b156701ce39eb562fbede97077b09 to your computer and use it in GitHub Desktop.
Save Nonymus/0d0b156701ce39eb562fbede97077b09 to your computer and use it in GitHub Desktop.
[Unit]
Description=Cassandra (systemd)
After=network.target
[Service]
User=cassandra
Environment="cassandra_home=/var/lib/cassandra"
LimitNPROC=32768
LimitMEMLOCK=infinity
LimitAS=infinity
LimitNOFILE=100000
SuccessExitStatus=0 143
ExecStart=/bin/bash -c '/usr/sbin/cassandra -f -H ${cassandra_home}/java_$(date +%%s).hprof -E ${cassandra_home}/hs_err_$(date +%%s).log'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment