[MacPorts] howto/MAMP modified

Jeremy Lavergne jeremy at lavergne.gotdns.org
Fri Nov 19 05:02:21 PST 2010


> +However, the purpose of launchd is to notice processes that stop without its knowledge, and to restart them. So if you use apachectl -k restart, launchd may notice apache "crashing" and restart it itself, confusing apachectl. Instead, you may want to use launchctl to unload apache2, then load it again. This will result in a short interruption of service.
> +
> +This is done by using 
> +
> +{{{
> +sudo launchctl unload -w /Library/LaunchDaemons/org.macports.apache2.plist
> +}}}
> +
> +to stop apache and then using
> +
> +{{{
> +sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist
> +}}}
> +
> +to start it again.
> +

Would port load and port unload suffice?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3749 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20101119/0180fc35/attachment.bin>


More information about the macports-dev mailing list