Stop, start, and restart a DataStax Agent
The following commands are used to stop, start and restart a DataStax Agent for each type of installation:
Stop the DataStax Agent
- Package installations
-
sudo service datastax-agent stop - Tarball installations
-
To stop the agent, find the agent Java process ID (PID), and then kill the process using its PID number:
ps -ef | grep datastax-agentsudo kill pid
Start the DataStax Agent
- Package installations
-
sudo service datastax-agent startThe agent starts automatically.
- Tarball installations
-
INSTALL_DIRECTORY/bin/datastax-agentOptionally, use the
-foption to start the agent in the foreground.
Restart the DataStax Agent
- Package installations
-
sudo service datastax-agent restart - Tarball installations
-
To stop the agent, find the agent Java process ID (PID), and then kill the process using its PID number:
ps -ef | grep datastax-agentsudo kill pidThen, start the agent. Optionally, use the
-foption to start the agent in the foreground.INSTALL_DIRECTORY/bin/datastax-agent