Customize scripts to start and stop DataStax Enterprise
OpsCenter allows you to start and stop 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.
-
Rename the example script located in
/usr/share/datastax-agent/bin(package installs) or inINSTALL_DIRECTORY/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/binmv start-cassandra.example start-cassandra
-
-
Edit the script to customize the behavior. The script should return an exit code of
0when successful, and a non-zero value if it fails. -
Make the script executable.
chmod 755 start-cassandra
For more information, see Node management operations.