Skip to content
Tags

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" = (
                           "/opt/local/sbin/smbd";
                           "-D";
                          );
 };

Links

Advertisements

From → Filesharing, System

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: