Skip to content

Instantly share code, notes, and snippets.

@kevincharm
Forked from s0undt3ch/cassandra.service
Created October 22, 2016 16:54
Show Gist options
  • Save kevincharm/506d5931cb63ac22867ffe5acdf55466 to your computer and use it in GitHub Desktop.
Save kevincharm/506d5931cb63ac22867ffe5acdf55466 to your computer and use it in GitHub Desktop.
CentOS 7 Cassandra systemd service file
# /usr/lib/systemd/system/cassandra.service
[Unit]
Description=Cassandra
After=network.target
[Service]
PIDFile=/var/run/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/sbin/cassandra -f -p /var/run/cassandra/cassandra.pid
StandardOutput=journal
StandardError=journal
LimitNOFILE=100000
LimitMEMLOCK=infinity
LimitNPROC=32768
LimitAS=infinity
Restart=always
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment