Skip to content

launchctl – Start / Stop services

15. December 2011

Start/Stop the apache service

$ sudo launchctl start|stop org.apache.httpd

Start/Stop the samba service

$ sudo launchctl start|stop org.samba.nmbd
$ sudo launchctl start|stop org.samba.smbd

List all services

$ sudo launchctl list

Find the name of a service

$ sudo launchctl list|grep samba
-    0    org.samba.smbd
-    0    org.samba.nmbd

List info about one service

$ sudo launchctl list org.samba.smbd
    "Label" = "org.samba.smbd";
    "LimitLoadToSessionType" = "System";
    "OnDemand" = true;
    "LastExitStatus" = 0;
    "TimeOut" = 30;
    "ProgramArguments" = (



From → Filesharing, System

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: