Created
October 17, 2017 20:34
-
-
Save Nonymus/0d0b156701ce39eb562fbede97077b09 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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