{"id":74738,"date":"2023-06-05T13:11:56","date_gmt":"2023-06-05T17:11:56","guid":{"rendered":"https:\/\/jumpcloud.com\/?post_type=support&p=74738"},"modified":"2023-07-26T14:40:24","modified_gmt":"2023-07-26T18:40:24","slug":"stop-start-or-restart-the-agent","status":"publish","type":"support","link":"https:\/\/jumpcloud.com\/support\/stop-start-or-restart-the-agent","title":{"rendered":"Stop, Start, or Restart the JumpCloud Agent"},"content":{"rendered":"\n
For troubleshooting, it may be necessary to check or change the status of the JumpCloud agent.<\/p>\n\n\n\n
To check or change the agent status on a Mac, run as root:<\/p>\n\n\n\n
[root@mymac ~]# launchctl list | grep jumpcloud
23392 -15 com.jumpcloud.darwin-agent<\/p>\n<\/div><\/div>\n\n\n\n
With process snapshot:<\/p>\n\n\n\n
[root@mymac ~]# ps -fax | grep jumpcloud
0 23392 1 0 6:06PM ?? 0:00.01 \/bin\/bash .\/jumpcloud-service.sh
0 23398 23392 0 6:06PM ?? 0:00.26 .\/bin\/jumpcloud-agent –conf=jcagent.conf<\/p>\n<\/div><\/div>\n\n\n\n
Launchctl<\/kbd> will automatically try to start the service if it’s loaded. If the service isn’t running, make sure it’s loaded:<\/p>\n\n\n\n [root@mymac \/opt\/jc]# launchctl load \/Library\/LaunchDaemons\/com.jumpcloud.darwin-agent.plist<\/p>\n<\/div><\/div>\n\n\n\n To restart:<\/p>\n\n\n\n [root@mymac \/opt\/jc]# launchctl stop com.jumpcloud.darwin-agent<\/p>\n<\/div><\/div>\n\n\n\n To force a stop, unload the LaunchDaemon:<\/p>\n\n\n\n [root@mymac ~]# launchctl unload \/Library\/LaunchDaemons\/com.jumpcloud.darwin-agent.plist<\/p>\n<\/div><\/div>\n\n\n\n To check or change the agent status in Windows, Run As Administrator.<\/p>\n\n\n\n To check state<\/strong>:<\/p>\n\n\n\n C:>sc query jumpcloud-agent<\/p>\n<\/div><\/div>\n\n\n\n SERVICE_NAME: jumpcloud-agent To start and stop<\/strong>:<\/p>\n\n\n\n sc start jumpcloud-agent<\/p>\n<\/div><\/div>\n\n\n\n sc stop jumpcloud-agent<\/p>\n<\/div><\/div>\n\n\n\n To check or change status in Linux, run as root (results truncated):<\/p>\n\n\n\n [root@host ~]# service jcagent status<\/p>\n<\/div><\/div>\n\n\n\n jcagent.service – JumpCloud Agent With process snapshot<\/p>\n\n\n\n [root@host ~]# ps -aufx | grep jumpcloud To start, stop and\/or restart<\/strong>:<\/p>\n\n\n\n service jcagent start<\/p>\n<\/div><\/div>\n\n\n\n service jcagent stop<\/p>\n<\/div><\/div>\n\n\n\n service jcagent restart<\/p>\n<\/div><\/div>\n\n\n\n For newer systems with systemd, you can also use systemctl:<\/p>\n\n\n\n systemctl status jcagent<\/p>\n<\/div><\/div>\n\n\n\n systemctl start jcagent<\/p>\n<\/div><\/div>\n\n\n\n systemctl stop jcagent<\/p>\n<\/div><\/div>\n\n\n\n systemctl restart jcagent<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":" For troubleshooting, it may be necessary to check or change the status of the JumpCloud agent. Mac To check or […]<\/p>\n","protected":false},"author":206,"featured_media":0,"template":"","meta":{"_acf_changed":false,"_oasis_is_in_workflow":0,"_oasis_original":0,"_oasis_task_priority":"","inline_featured_image":false,"footnotes":""},"support_category":[2923,2852],"support_tag":[],"coauthors":[2842],"acf":[],"yoast_head":"\nWindows<\/h2>\n\n\n\n
Via Command Line<\/h3>\n\n\n\n
TYPE : 10 WIN32_OWN_PROCESS
STATE : 4 RUNNING (STOPPABLE, PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0<\/p>\n<\/div><\/div>\n\n\n\nVia GUI<\/h3>\n\n\n\n
\n
Linux<\/h2>\n\n\n\n
Loaded: loaded (\/usr\/lib\/systemd\/system\/jcagent.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Thu 2016-09-01 13:27:16 MDT; 3h 26min ago
Docs: http:\/\/support.jumpcloud.com\/knowledgebase
Main PID: 890 (code=exited, status=0\/SUCCESS)<\/p>\n<\/div><\/div>\n\n\n\n
root 2272 0.0 0.1 3840 1292 ? Sl 13:27 0:00 \/opt\/jc\/bin\/agent-monitor -exec=\/opt\/jc\/bin\/jumpcloud-agent -conf=\/opt\/jc\/jcagent.conf
root 2275 0.0 1.6 682980 16400 ? Sl 13:27 0:03 _ \/opt\/jc\/bin\/jumpcloud-agent -conf=\/opt\/jc\/jcagent.conf<\/p>\n<\/div><\/div>\n\n\n\n