Revision 13989
Added by Aaron Marcuse-Kubitza over 10 years ago
Makefile | ||
---|---|---|
143 | 143 |
|
144 | 144 |
macPostgresDir := /usr/local/var/postgres |
145 | 145 |
define pg_ctl-Darwin |
146 |
launchctl $(1) ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
|
|
146 |
brew services $(1) postgresql
|
|
147 | 147 |
endef |
148 | 148 |
|
149 | 149 |
postgres_restart: postgres_restart-$(os) _always ; |
... | ... | |
153 | 153 |
@echo $(call pg_ctl-$(os),restart) |
154 | 154 |
@$(wait) |
155 | 155 |
postgres_restart-Darwin: _always |
156 |
@echo $(call pg_ctl-$(os),unload) |
|
157 |
@echo $(call pg_ctl-$(os),load) |
|
156 |
@echo $(call pg_ctl-$(os),restart) |
|
158 | 157 |
|
159 | 158 |
confirmPostgresReload = $(call confirm,Modifying postgresql.conf and pg_hba.conf) |
160 | 159 |
|
Also available in: Unified diff
/Makefile: $(pg_ctl-Darwin): use simpler `brew services` instead of `launchctl __/homebrew.mxcl.postgresql.plist`