Customize scripts for starting and stopping DataStax Enterprise

About this task

OpsCenter allows starting and stopping the DataStax Enterprise process on each node in a visual manner. The agent attempts to automatically determine the best way to do this but cannot do so in all cases. You can customize the startup or shutdown of a node using the start-cassandra and stop-cassandra scripts.

Procedure

  1. Rename the example script located in /usr/share/datastax-agent/bin (package installs) or in install_location/bin (tarball installs) to remove the .example extension.

    • start-cassandra.example: example startup script

    • stop-cassandra.example: example shutdown script

      cd /usr/share/datastax-agent/bin
      mv start-cassandra.example start-cassandra
  2. Edit the script to customize the behavior. The script should return an exit code of 0 when successful, and a non-zero value if it fails.

  3. Make the script executable.

    chmod 755 start-cassandra

Related information

Was this helpful?

Give Feedback

How can we improve the documentation?

© 2024 DataStax | Privacy policy | Terms of use

Apache, Apache Cassandra, Cassandra, Apache Tomcat, Tomcat, Apache Lucene, Apache Solr, Apache Hadoop, Hadoop, Apache Pulsar, Pulsar, Apache Spark, Spark, Apache TinkerPop, TinkerPop, Apache Kafka and Kafka are either registered trademarks or trademarks of the Apache Software Foundation or its subsidiaries in Canada, the United States and/or other countries. Kubernetes is the registered trademark of the Linux Foundation.

General Inquiries: +1 (650) 389-6000, info@datastax.com