Le istruzioni alla fine di installazione di fornire una soluzione per l'avvio di PostgreSQL quando l'utente accede a:Qual è il modo corretto di auto-avviare PostgreSQL installato usando Homebrew?
cp /usr/local/Cellar/postgresql/9.1.3/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
speravo che se metto il plist in/Library/LaunchAgents/invece, sarebbe iniziare senza aspettare per me per accedere. Sfortunatamente, non è così che funziona. Non ho trovato buone istruzioni di modifica plist e ho davvero paura di provare a armeggiare con esso. Sto indovinando il problema si trova con il tasto UserName, ma non voglio rimuoverlo e spero solo che funzioni.
Questa è la plist generato:
<?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>KeepAlive</key>
<true/>
<key>Label</key>
<string>homebrew.mxcl.postgresql</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/postgres</string>
<string>-D</string>
<string>/usr/local/var/postgres</string>
<string>-r</string>
<string>/usr/local/var/postgres/server.log</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>UserName</key>
<string>my_username</string>
<key>WorkingDirectory</key>
<string>/usr/local</string>
<key>StandardErrorPath</key>
<string>/usr/local/var/postgres/server.log</string>
</dict>
</plist>
La soluzione è semplice come spostare Plist su LaunchDaemons anziché su LaunchAgents. – burger