-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include LaunchAgent plist #6
Comments
+1 |
Looking briefly through the code there are two ways to generate automatically LaunchAgent .plist:
|
There is a plist here: |
Here is a thread that discusses why most of the proposed launchd.plist solutions are faulty: http://www.postgresql.org/message-id/[email protected] |
@petere So what is recommended option for now? I just want some default cluster to start on boot, now I'm doing by hand this command on system start: $ pg_ctlcluster 9.4 main start |
@petere any ideas? What do you use? |
+1 |
1 similar comment
+1 |
What did everyone here do? I'm stuck just using pg_ctlcluster for now but would like an option to do on startup |
Sorry to bother everyone on an old thread, but this is still a super useful tool and I'm trying to get my clusters to automatically start on boot. This sorescode.com blog is offline now, but I found a cached version: http://web.archive.org/web/20200219121857/http://sorescode.com/2013/05/17/installing-postgresql-93-beta-using-homebrew.html I read some of the replies on the postgres thread about launchd not being a good solution, and I believe the main concern was about launchd not waiting for the network to come up. Please correct me if I'm wrong, but I think that would only be relevant for daemons (in I have a Postgres 11 cluster named I created a launchd plist file at
(This just runs Symlinked it into
And ran it to check that it works:
Then you can create more plists for any other clusters that you want to start. (P.S. Maybe a |
Official postgresql formula includes a LaunchAgent plist, any reason for not including it?
The text was updated successfully, but these errors were encountered: