Skip to content
Tags

launchctl – Start / Stop services – apache

15. January 2012

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

Advertisements

From → System, Webserver

Leave a Comment

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: