Stopping and restarting Standalone Sentry services

You can stop, start, or restart the following Standalone Sentry services from the Standalone Sentry command line interface (CLI):

iptables

tomcat

tomcat2

Restarting a service, stops the service and then restarts the service automatically.

Table 74.   Stopping and restarting Standalone Sentry services

Feature

Command

Stop a service

service {iptables | tomcat | tomcat2} stop

Start a service

service {iptables | tomcat | tomcat2} start

Restart a service

service {iptables | tomcat | tomcat2} restart

View service status

service {iptables | tomcat | tomcat2} status

This allows the administrator to stop, start, or restart a Standalone Sentry service without having to reboot Standalone Sentry and prevents disruption to other services that are running.

Impact of stopping and restarting Standalone Sentry services

Stopping or restarting tomcat2 will impact access to Standalone Sentry system manager UI and CLI commands. The Standalone Sentry system manager will not be available and you will be able to execute only a subset of the CLI commands.

Stopping or restarting tomcat or iptables services will impact Standalone Sentry traffic till the service is back up and running.

After stopping a service through the CLI, restarting Standalone Sentry also restarts the service.

How to stop and restart Standalone Sentry services

To stop a service, enter the following command:

service [iptables | tomcat | tomcat2] stop

Example for stopping tomcat::

sentry# service tomcat stop

To start a service, enter the following command:

service [iptables | tomcat | tomcat2] stop

Example for starting tomcat::

sentry# service tomcat start

To restart a service, enter the following command:

service [iptables | tomcat | tomcat2] restart

Example for restarting tomcat::

sentry# service tomcat restart

To view service status, enter the following command:

service [iptables | tomcat | tomcat2] status

Example for viewing tomcat::

sentry# service tomcat status