Start/Stop the apache service
$ sudo launchctl start|stop org.apache.httpd
List info about a the apache service
$ sudo launchctl list org.apache.httpd { "Label" = "org.apache.httpd"; "LimitLoadToSessionType" = "System"; "OnDemand" = false; "LastExitStatus" = 0; "PID" = 2909; "TimeOut" = 30; "ProgramArguments" = ( "/usr/sbin/httpd"; "-D"; "FOREGROUND"; "-D"; "MACOSXSERVER"; "-D"; "WEBSHARING_ON"; "-D"; "WEBSERVICE_ON"; ); };
Related
Links