Starting and Stopping Servers and Agents Manually

3 minute readReference

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:

sc stop CommanderServer sc stop CommanderApache sc stop CommanderDatabase 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:

sc stop CommanderLogstash sc stop CommanderElasticsearch

Linux

Log into a shell as root and enter:

/etc/init.d/commanderLogstash stop /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:

sc start CommanderDatabase sc start CommanderServer sc start CommanderApache sc start CommanderRepository

Linux

Log into a shell as root and enter:

/etc/init.d/commanderDatabase start /etc/init.d/commanderServer start /etc/init.d/commanderApache start /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:

sc start CommanderElasticsearch sc start CommanderLogstash

Linux

Log into a shell as root and enter:

/etc/init.d/commanderElasticsearch start /etc/init.d/commanderLogstash start