Created
June 22, 2021 02:24
-
-
Save ilyaevseev/7fce5703a55d7f987080e7491b172d13 to your computer and use it in GitHub Desktop.
Systemd unit for starting Cassandra NoSQL server under Debian/Ubuntu
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 NoSQL DBMS | |
Requires=network.target | |
Wants=nss-online.target | |
After=nss-online.target network.target | |
Documentation=https://gist.github.com/s0undt3ch/969b744d3d7b88c29cba#gistcomment-3188779 | |
[Service] | |
Type=forking | |
Restart=on-failure | |
PIDFile=/run/cassandra/cassandra.pid | |
TimeoutStopSec=180 | |
SuccessExitStatus=143 | |
ExecStart=/usr/sbin/cassandra -p /run/cassandra/cassandra.pid | |
#ExecStopPre=-/usr/bin/nodetool drain | |
#ExecStop=/usr/bin/nodetool stopdaemon | |
User=cassandra | |
Group=cassandra | |
EnvironmentFile=-/etc/default/cassandra | |
LimitNOFILE=100000 | |
LimitNPROC=32768 | |
LimitMEMLOCK=infinity | |
LimitAS=infinity | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment