Stop and start the Code42 service

Overview

This tutorial explains how to stop and start the Code42 service on a device running the Code42 backup agent. You may need to stop and start the Code42 service to upgrade your operating system, to move a Code42 agent user to another device, or as part of a task with a Technical Support Engineer.

Considerations

The Code42 software on your device consists of two components:

  • A service, the Code42 service, that performs all backup operations in the background
  • A desktop application, the Code42 backup agent, for viewing the status of your backup and changing settings

If you quit the Code42 agent, the Code42 service continues to run. These instructions describe how to stop and start the Code42 service.

Basic restart for all operating systems

If you are able to open and sign in to the Code42 agent, follow the steps below to restart the Code42 service.

  1. Open the Code42 agent.
  2. If necessary, sign in to your account.
  3. Use the keyboard shortcut for your operating system:
    • Windows: Ctrl+Shift+C
    • Mac: Option+Command+C
    • Linux: Ctrl+Shift+C
      The command-line area opens.
  4. Enter this command:
    restart
  5. Press Enter.
    This closes the Code42 agent, reauthenticates the Code42 agent with the Code42 cloud, and then restarts the Code42 service.

Advanced restart process

If you are not able to open the Code42 agent, follow the steps below to restart the Code42 service.

  • If you installed the Code42 agent for everyone (the default method), follow the default installation steps for your operating system.
  • If you installed the Code42 agent per user, follow the per user installation steps for your operating system.

Mac default installation (for everyone)

Mac per user installation (for me only)

Windows default installation (for everyone)

Windows per user installation (for me only)

Restart on Linux

Mac: View status of the Code42 service

Use this command to view if the Code42 service is running:

ps auxww | grep -i Code42Service

If the Code42 service is running, the output looks like this:

c42-dhcp-183:~ renee$ ps auxww | grep -i Code42Service
root        63   0.1  6.1   873644 126976   ??  SNs  Tue03PM  43:01.37 /Applications/Code42.app/Contents/Library/LaunchServices/Code42Service.app/Contents/MacOS/Code42Service -Duser.install=0
renee     3256   0.0  0.0   590472     84 s001  R+    2:11PM   0:00.00 grep -i Code42Service

If the Code42 service is not running, the output looks like this:

c42-dhcp-183:~ renee$ ps auxww | grep -i Code42Service
renee     3265   0.0  0.0   599780    444 s001  R+    2:13PM