controlling Macports version of Apache2

Brandon Allbery allbery.b at
Thu Oct 23 19:49:00 PDT 2014

On Thu, Oct 23, 2014 at 10:43 PM, William H. Magill <magill at> wrote:

> They should be something like:
> sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop
> sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper
> start
> sudo /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper
> restart

I do not see this; the Portfile says it uses apachectl directly, not a

    startupitem.create    yes
    startupitem.start    \
    "\[ -x ${prefix}/${name}/bin/apachectl \] &&
${prefix}/${name}/bin/apachectl start > /dev/null"
    startupitem.stop    \
    "\[ -r ${prefix}/${name}/logs/ \] &&
${prefix}/${name}/bin/apachectl stop > /dev/null"
    startupitem.restart    \
    "${prefix}/${name}/bin/apachectl restart > /dev/null"

(There may well be a wrapper because most of these things are controlled by
daemondo to satisfy the requirements of launchd-initiated processes; this
is a wrapper around the command, though, not a wrapper script.)

brandon s allbery kf8nh                               sine nomine associates
allbery.b at                                  ballbery at
unix, openafs, kerberos, infrastructure, xmonad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list