PostgreSQL 91 does not start automatically

Jeremy Lavergne jeremy at lavergne.gotdns.org
Wed Apr 25 14:04:19 PDT 2012


> $less /Library/LaunchDaemons/org.macports.apache2.plist 
> <?xml version='1.0' encoding='UTF-8'?>
> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
> "http://www.apple.com/DTDs/PropertyList-1.0.dtd" >
> <plist version='1.0'>
> <dict>
> <key>Label</key><string>org.macports.apache2</string>
> <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>
> </array>
> <key>Debug</key><false/>
> <key>Disabled</key><true/>
> <key>KeepAlive</key><true/>
> </dict>
> </plist>

Looks like it's not waiting for networking, and it's disabled?

I'd change KeepAlive from a bool to a dict, and inside it place NetworkState set to true.

From man 5 launchd.plist:
     KeepAlive <boolean or dictionary of stuff>
           NetworkState <boolean>
           If true, the job will be kept alive as long as the network is up,
           where up is defined as at least one non-loopback interface being up
           and having IPv4 or IPv6 addresses assigned to them.  If false, the
           job will be kept alive in the inverse condition.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 8796 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20120425/92bb7fa6/attachment.bin>


More information about the macports-users mailing list