Starting and Stopping Servers and Agents Manually

3 minute read

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

Stopping the CloudBees CD Agent Service

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

Windows

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

  2. Right-click CloudBees CD 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

  • Solaris: /etc/init.d/ecmdrAgent stop

  • AIX: /etc/rc.d/init.d/ecmdrAgent stop

  • HP-UX: /sbin/init.d/ecmdrAgent stop

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

Stopping All CloudBees CD Server Services

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

Windows

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

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

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

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

  5. Right-click CloudBees CD 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 DevOps Insight Services

DevOps Insight uses services for Elasticsearch and Logstash. To stop these services, log into the DevOps Insight 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 Logstash Service and click Stop.

  3. Right-click CloudBees CD 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 Agent Service

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

Windows

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

  2. Right-click CloudBees CD 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

  • Solaris: /etc/init.d/ecmdrAgent stop

  • AIX: /etc/rc.d/init.d/ecmdrAgent stop

  • HP-UX: /sbin/init.d/ecmdrAgent stop

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

Starting All CloudBees CD Server Services

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

Windows

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

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

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

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

  5. Right-click CloudBees CD 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 DevOps Insight Services

To start the DevOps Insight services (Elasticsearch and Logstash), log into the DevOps Insight 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 Elasticsearch Service and click Start.

  3. Right-click CloudBees CD 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