Customize scripts for starting and stopping DataStax Enterprise
OpsCenter allows starting and stopping the DataStax Enterprise process on each node in a visual manner. Customize the startup or shutdown of a node using the provided example scripts.
Procedure
-
Rename the example script in /usr/share/datastax-agent/bin
(package installs) or
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
-
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. -
Make the script executable.
chmod 755 start-cassandra