On Oct 20, 2014, at 5:17 PM, Tom Lane <t...@sss.pgh.pa.us> wrote: > [ looks ... ] Yeah, there's no mention of KeepAlive in 10.4's > launchd.plist man page. It does have a convenient example > saying that OnDemand = false does what we want:
Yeah, let’s see if we can cover both. > I'd just drop them into files in the data directory; we're still going > to recommend that people use the logging_collector, so this is just a > stopgap to collect startup errors. How about this? <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>Label</key> <string>org.postgresql.postgresql</string> <key>UserName</key> <string>postgres</string> <key>GroupName</key> <string>postgres</string> <key>ProgramArguments</key> <array> <string>/usr/local/pgsql/bin/postgres</string> <string>-D</string> <string>/usr/local/pgsql/data</string> </array> <key>StandardOutPath</key> <string>/usr/local/pgsql/data/launchd.log</string> <key>StandardErrorPath</key> <string>/usr/local/pgsql/data/launchd.log</string> <key>OnDemand</key><!-- OS X 10.4 --> <false/> <key>KeepAlive</key><!-- OS X 10.5+ --> <true/> </dict> </plist> No fix for the networking issue, of course. Best, David
smime.p7s
Description: S/MIME cryptographic signature