Problems with Apache2 starting up

Daniel J. Luke dluke at geeklair.net
Wed Jan 28 08:44:36 PST 2009


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>foo.bar.baz</string>
         <key>OnDemand</key>
         <false/>
         <key>ProgramArguments</key>
         <array>
                 <string>/opt/local/bin/daemondo</string>
                 <string>--label=foo</string>
                 <string>--start-cmd</string>
                 <string>/path/to/whatever</string>
                 <string>-arg</string>
                 <string>;</string>
                 <string>--pid=exec</string>
                 <string>--restart-netchange</string>
         </array>
         <key>RunAtLoad</key>
         <false/>
</dict>
</plist>

--
Daniel J. Luke
+========================================================+
| *---------------- dluke at geeklair.net ----------------* |
| *-------------- http://www.geeklair.net -------------* |
+========================================================+
|   Opinions expressed are mine and do not necessarily   |
|          reflect the opinions of my employer.          |
+========================================================+



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20090128/768ba53a/attachment.bin>


More information about the macports-users mailing list