Starting and Stopping Servers and Agents Manually

Reference

CloudBees CD/RO servers and agents must be manually stopped and started for administrative maintenance, upgrades, third-party software installations, or system maintenance.

Stopping the CloudBees CD/RO Agent Service

To stop the CloudBees CD/RO agent service, choose one of the following options.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Agent and click Stop.

Windows Command Line

Open a command window as Administrator and enter:

sc stop CommanderAgent

Linux

Log into a shell as root and enter one of the following commands:

  • Linux: /etc/init.d/commanderAgent stop

  • macOS: launchctl unload /Library/LaunchDaemons/ecmdrAgent.plist

Stopping All CloudBees CD/RO Server Services

To stop all CloudBees CD/RO server services, choose one of the following options.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Server and click Stop.

  3. Right-click CloudBees CD/RO Web Server and click Stop.

  4. Right-click CloudBees CD/RO Database (if it exists) and click Stop.

  5. Right-click CloudBees CD/RO Repository Server and click Stop.

Windows Command Line

Open a command window as Administrator and enter:

  1. sc stop CommanderServer

  2. sc stop CommanderApache

  3. sc stop CommanderDatabase

  4. sc stop CommanderRepository

Linux

Log into a shell as root and enter:

  1. /etc/init.d/commanderServer stop

  2. /etc/init.d/commanderApache stop

  3. `/etc/init.d/CommanderDatabase stop `

  4. /etc/init.d/commanderRepository stop

Stopping All CloudBees Analytics Services

CloudBees Analytics uses services for Elasticsearch and Logstash. To stop these services, log into the CloudBees Analytics server and choose one of the following options. Because Logstash sends data to Elasticsearch, you stop Logstash first to prevent Logstash errors.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Logstash Service and click Stop.

  3. Right-click CloudBees CD/RO Elasticsearch Service and click Stop.

Windows Command Line

Open a command window as Administrator and enter:

  1. sc stop CommanderLogstash

  2. sc stop CommanderElasticsearch

Linux

Log into a shell as root and enter:

  1. /etc/init.d/commanderLogstash stop

  2. /etc/init.d/commanderElasticsearch stop

Starting the CloudBees CD/RO Agent Service

To start the CloudBees CD/RO agent service, choose one of the following options.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Agent and click Start.

Windows Command Line

Open a command window as Administrator and enter:

sc start CommanderAgent

Linux

Log into a shell as root and enter one of the following commands:

  • Linux: /etc/init.d/commanderAgent stop

  • macOS: launchctl load /Library/LaunchDaemons/ecmdrAgent.plist

Starting All CloudBees CD/RO Server Services

To start all CloudBees CD/RO server services, choose one of the following options.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Database (if it exists) and click Start.

  3. Right-click CloudBees CD/RO Server and click Start.

  4. Right-click CloudBees CD/RO Web Server and click Start.

  5. Right-click CloudBees CD/RO Repository Server and click Start.

Windows Command Line

Open a command window as Administrator and enter:

  1. sc start CommanderDatabase

  2. sc start CommanderServer

  3. sc start CommanderApache

  4. sc start CommanderRepository

Linux

Log into a shell as root and enter:

  1. /etc/init.d/CommanderDatabase start

  2. /etc/init.d/commanderServer start

  3. /etc/init.d/commanderApache start

  4. /etc/init.d/commanderRepository start

Starting All CloudBees Analytics Services

To start the CloudBees Analytics services (Elasticsearch and Logstash), log into the CloudBees Analytics server and choose one of the following options. Because Logstash sends data to Elasticsearch, you start Elasticsearch first to prevent Logstash errors.

Windows

  1. Go to Control Panel > Administrative Tools > Services.

  2. Right-click CloudBees CD/RO Elasticsearch Service and click Start.

  3. Right-click CloudBees CD/RO Logstash Service and click Start.

Windows Command Line

Open a command window as Administrator and enter:

  1. sc start CommanderElasticsearch

  2. sc start CommanderLogstash

Linux

Log into a shell as root and enter:

  1. /etc/init.d/commanderElasticsearch start

  2. /etc/init.d/commanderLogstash start