Problems with Apache2 starting up
Jeff Stubbs
jeff at cjstubbs.org
Wed Jan 28 18:06:55 PST 2009
Ahhh,.....
So, modifying your example .plist file to reflect the apache2 plist
file (see below), would just require inserting the "--restart-
netchange" argument. I'll attempt it and report back.
Jeff
On Jan 28, 2009, at 11:44 AM, Daniel J. Luke wrote:
> On Jan 28, 2009, at 11:10 AM, Scott Haneda wrote:
>>> Or you could have daemondo launch your process and make sure to
>>> pass the --restart-netchange argument to it.
>>
>> can you elaborate on this a little? I wasnit aware if this. Is this
>> a launchd feature or us daemondo something else?
>
> daemondo is a program that ships with macports (should be /opt/local/
> bin/daemondo , run daemondo --help for lots of information)
>
> You could set up your launchd plist something like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd
> ">
> <plist version="1.0">
> <dict>
> <key>Debug</key>
> <false/>
> <key>Label</key>
> <string>org.macports.apache2</string>
> <key>OnDemand</key>
> <false/>
> <key>ProgramArguments</key>
> <array>
> <string>/opt/local/bin/daemondo</string>
> <string>--label=apache2</string>
> <string>--start-cmd</string>
> <string>/opt/local/etc/LaunchDaemons/
> org.macports.apache2/apache2.wrapper</string>
> <string>-start</string>
> <string>;</string>
>
> <string>--stop-cmd</string>
> <string>/opt/local/etc/LaunchDaemons/org.macports.apache2/
> apache2.wrapper</string>
> <string>stop</string>
> <string>;</string>
> <string>--restart-cmd</string>
> <string>/opt/local/etc/LaunchDaemons/org.macports.apache2/
> apache2.wrapper</string>
> <string>restart</string>
> <string>;</string>
> <string>--pid=none</string>
<string>--restart-netchange</string>
> </array>
> <key>RunAtLoad</key>
> <false/>
> </dict>
> </plist>
More information about the macports-users
mailing list