Start or Stop Webservice with CCC


Prerequisites

You must first complete the steps described in Setting up a CCC node.

You also need to download the service scripts and extract them into your working directory.

To identify the service you want to manage, check the file:

./config/services.json

In our example, the id is:

service.web:dashboard@domain:demo.902.dbwatch.com

Get Status

Use the service_status.script file with the following command to retrieve the current status of the service:

./ccc.sh service_status.script serviceName="service.web:dashboard@domain:demo.902.dbwatch.com"

This command will return either:

Stop the Service

To stop the service, run:

./ccc.sh service_stop.script serviceName="service.web:dashboard@domain:demo.902.dbwatch.com"

Verify the status again:

./ccc.sh service_status.script serviceName="service.web:dashboard@domain:demo.902.dbwatch.com"

Start the Service

To start the service again, run:

./ccc.sh service_start.script serviceName="service.web:dashboard@domain:demo.902.dbwatch.com"

You can confirm the service is running with:

./ccc.sh service_status.script serviceName="service.web:dashboard@domain:demo.902.dbwatch.com"

Related Topics