Equivalent to systemctl on Macos?

Hello,


I have read that the answer to the question is launchctl. I have done some tests and cannot get launchctl to work as systemctl in linux.


I have installed nginx from macports. If I enter some nonsense code in the the configuration files and run "sudo launchctl stop org.macports.nginx" followed by "sudo launchctl start org.macports.nginx" I don't get any output at all. I want it to be as in linux where systemctl returns an error if the code is wrong.


I know I can run "sudo nginx -s reload", but that is just nginx specific.


Am I doing anything wrong?


Fred

iMac 24″

Posted on Sep 26, 2024 7:12 AM

Reply
1 reply
Sort By: 

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.

Equivalent to systemctl on Macos?

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