Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to stop and restart a service

Does anyone know the commands to stop/restart a particular service via Terminal?

Posted on Aug 7, 2020 1:32 PM

Reply
Question marked as Best reply

Posted on Aug 7, 2020 4:51 PM

dmatt110 wrote:

What you provided is like 10 years old and is not valid for Catalina. Thanks anyway.

It's still valid for Catalina. You just have to disable SIP first. The "list" subcommand is deprecated. You should use "print" and the appropriate domain instead.


What are you trying to do anyway? And why?

4 replies
Question marked as Best reply

Aug 7, 2020 4:51 PM in response to dmatt110

dmatt110 wrote:

What you provided is like 10 years old and is not valid for Catalina. Thanks anyway.

It's still valid for Catalina. You just have to disable SIP first. The "list" subcommand is deprecated. You should use "print" and the appropriate domain instead.


What are you trying to do anyway? And why?

Aug 7, 2020 2:12 PM in response to dmatt110

Yep, here you go...


https://serverfault.com/questions/194832/how-to-start-stop-restart-launchd-services-from-the-command-line


sudo launchctl load -w /System/Library/LaunchDaemons/***.plist 

You can stop the service using the unload subcommand.

sudo launchctl unload  /System/Library/LaunchDaemons/***.plist 

To list the services, as you might have already guessed use the 'list' subcommand ;)

How to stop and restart a service

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.