Start and stop servers and agents manually

Stop and start Cloudbees CD/RO server and agent services manually on Windows and Linux for administrative maintenance, upgrades, or third-party software installations. Steps are provided for both Windows GUI and command line, as well as Linux systemd and init.d methods.

2 minute readReference

Cloudbees CD/RO and Cloudbees Analytics servers and agents must be manually stopped and started for administrative maintenance, upgrades, third-party software installations, or system maintenance. For information on stopping and starting Cloudbees Analytics servers and agents, refer to Start and stop servers and agents manually.

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 select Stop.

Windows command line

Open a command window as Administrator, and run:

sc stop CommanderAgent
▼

Linux

  • If you are using systemd, run:

    sudo systemctl stop commanderAgent
    ▼
  • Else, log into a shell as root, and run:

    • 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 select Stop.

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

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

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

Windows command line

Open a command window as Administrator, and run:

sc stop CommanderServer sc stop CommanderApache sc stop CommanderDatabase sc stop CommanderRepository
▼

Linux

  • If you are using systemd, run:

    sudo systemctl stop commanderServer sudo systemctl stop ommanderApache sudo systemctl stop commanderDatabase sudo systemctl stop commanderRepository
    ▼
  • Else, log into a shell as root, and run:

    /etc/init.d/commanderServer stop /etc/init.d/commanderApache stop /etc/init.d/commanderDatabase stop /etc/init.d/commanderRepository 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 select Start.

Windows command line

Open a command window as Administrator, and run:

sc start CommanderAgent
▼

Linux

  • If you are using systemd, run:

    sudo systemctl stop commanderAgent
    ▼
  • Else, log into a shell as root, and run either:

    • 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 select Start.

  3. Right-click Cloudbees CD/RO Server and select Start.

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

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

Windows command line

Open a command window as Administrator, and run:

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

Linux

  • If you are running systemd, run:

    sudo systemctl start commanderDatabase sudo systemctl start commanderServer sudo systemctl start commanderApache sudo systemctl start commanderRepository
    ▼
  • Else, log into a shell as root, and run:

    /etc/init.d/commanderDatabase start /etc/init.d/commanderServer start /etc/init.d/commanderApache start /etc/init.d/commanderRepository start
    ▼