Skip to content

Instantly share code, notes, and snippets.

@tobert
Created December 31, 2013 22:01
Show Gist options
  • Select an option

  • Save tobert/8202635 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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