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
4 replies

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 ;)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

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 Account.