Re: Patch: Add launchd Support
От | David E. Wheeler |
---|---|
Тема | Re: Patch: Add launchd Support |
Дата | |
Msg-id | D57995D6-6526-4340-AB67-AA900C3E22E2@justatheory.com обсуждение исходный текст |
Ответ на | Re: Patch: Add launchd Support (Tom Lane <tgl@sss.pgh.pa.us>) |
Список | pgsql-hackers |
On Oct 20, 2014, at 5:17 PM, Tom Lane <tgl@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><!-- OSX 10.5+ --><true/> </dict> </plist> No fix for the networking issue, of course. Best, David
В списке pgsql-hackers по дате отправления: