Skip to content

Instantly share code, notes, and snippets.

@tobert
Created December 31, 2013 22:01
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tobert/8202635 to your computer and use it in GitHub Desktop.
Save tobert/8202635 to your computer and use it in GitHub Desktop.
A systemd unit for Cassandra
[Unit]
Description=Cassandra
After=network.target
[Service]
Type=forking
PIDFile=/var/lib/cassandra/cassandra.pid
User=cassandra
Group=cassandra
ExecStart=/usr/bin/cassandra -p /var/lib/cassandra/cassandra.pid
StandardOutput=journal
StandardError=journal
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
@vicdurai
Copy link

vicdurai commented Dec 5, 2016

systemctl start cassandra.service does not return and is stuck even after the cassandra daemon starts. Kill works great. Only issue is that I have use Ctrl + C every time start the service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment