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.
- Open the Code42 agent.
- If necessary, sign in to your account.
- 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.
- Enter this command:
restart
- 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)
Go to Applications > Utilities > Terminal and enter the commands below to stop or start the Code42 service:
-
Stop:
sudo launchctl unload /Library/LaunchDaemons/com.code42.service.plist
When prompted, enter your password. The password doesn't display as you enter it.
-
Start:
sudo launchctl load /Library/LaunchDaemons/com.code42.service.plist
You may also confirm whether or not the Code42 service is running on a Mac.
Mac per user installation (for me only)
If you installed the Code42 agent per user (instead of for all users, the default method), use the following commands to stop and start the Code42 service:
Stop |
launchctl unload ~/Library/LaunchAgents/com.code42.service.plist
|
Start |
launchctl load ~/Library/LaunchAgents/com.code42.service.plist
|
You may also confirm whether or not the Code42 service is running on a Mac.
Windows default installation (for everyone)
- Open Windows Services:
- Windows 7 and 10: Click Start and enter services.msc.
- Windows 8: Press Ctrl+Shift+Esc to open the Task Manager and select the Services tab.
- Right-click Code42 Service and click Stop, Start, or Restart, as appropriate.
Video
Watch the 3-minute video below to verify if the Code42 service is running and restart it if necessary.
Although this video demonstrates how to restart the Code42 service using CrashPlan for Small Business, the same process applies to Code42 for Enterprise.
Windows per user installation (for me only)
If the Code42 agent is installed per user (instead of for everyone, the default method), use the following commands to stop and start the Code42 service:
Stop the Code42 service
- Open Windows Task Manager:
- Windows 7 and 10: Click Start and enter
Task Manager
.
- Windows 8: Press Ctrl+Shift+Esc to open the Task Manager.
- Click Processes.
- Choose Code42 Service.
- Select End Task.
Start the Code42 service
- Open Windows Task Manager:
- Windows 7 and 10: Click Start and enter
Task Manager
.
- Windows 8: Press Ctrl+Shift+Esc to open the Task Manager.
- Click File.
- Select Run New Task.
- Paste the following into the Open dialog, or Browse to this location, replacing <username> with your Windows user name:C:\Users\<username>\AppData\Local\Programs\Code42\LaunchService.vbs
- Click Ok.
Restart on Linux
A script to start and stop the Code42 service is stored in the crashplan/bin directory. The default directory is /usr/local/crashplan/bin.
In a terminal session, navigate to the crashplan/bin directory, then enter:
Stop |
./service.sh stop |
Start |
./service.sh start |
After starting the Code42 service, open the Code42 agent from terminal with the following command:
/usr/local/crashplan/bin/desktop.sh
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