From: | "David E(dot) Wheeler" <david(at)justatheory(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Patch: Add launchd Support |
Date: | 2014-10-21 00:34:02 |
Message-ID: | D57995D6-6526-4340-AB67-AA900C3E22E2@justatheory.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Oct 20, 2014, at 5:17 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Jim Nasby | 2014-10-21 00:39:16 | Re: Autovacuum fails to keep visibility map up-to-date in mostly-insert-only-tables |
Previous Message | Andres Freund | 2014-10-21 00:31:59 | Re: Proposal: Log inability to lock pages during vacuum |