Revision 14068
Added by Aaron Marcuse-Kubitza over 10 years ago
Makefile | ||
---|---|---|
139 | 139 |
linuxPostgresDir := /etc/postgresql/9.3/main |
140 | 140 |
define pg_ctl-Linux |
141 | 141 |
$(asAdmin) /etc/init.d/postgresql $(1)\ |
142 |
\# if doesn't work, run `rm $(linuxPostgresDir)/postmaster.pid` and retry
|
|
142 |
# if doesn'\''t work, run `rm $(linuxPostgresDir)/postmaster.pid` and retry
|
|
143 | 143 |
endef |
144 | 144 |
|
145 | 145 |
macPostgresDir := /usr/local/var/postgres |
146 | 146 |
define pg_ctl-Darwin |
147 | 147 |
brew services $(1) postgresql\ |
148 |
\# if doesn't work, run `rm $(macPostgresDir)/postmaster.pid` and retry
|
|
148 |
# if doesn'\''t work, run `rm $(macPostgresDir)/postmaster.pid` and retry
|
|
149 | 149 |
endef |
150 | 150 |
#pg_ctl -D $(macPostgresDir) $(1) |
151 | 151 |
|
... | ... | |
153 | 153 |
postgres_restart-Linux: _always |
154 | 154 |
@# for some reason, pg_ctl does not work when run inside make |
155 | 155 |
@echo $(emph)'restart PostgreSQL manually:'$(endEmph) |
156 |
@echo $(call pg_ctl-$(os),restart)
|
|
156 |
@echo '$(call pg_ctl-$(os),restart)'
|
|
157 | 157 |
@$(wait) |
158 | 158 |
postgres_restart-Darwin: _always |
159 | 159 |
@# for some reason, pg_ctl does not work when run inside make |
160 | 160 |
@echo $(emph)'restart PostgreSQL manually:'$(endEmph) |
161 |
@echo $(call pg_ctl-$(os),restart)
|
|
161 |
@echo '$(call pg_ctl-$(os),restart)'
|
|
162 | 162 |
@$(wait) |
163 | 163 |
|
164 | 164 |
confirmPostgresReload = $(call confirm,Modifying postgresql.conf and pg_hba.conf) |
Also available in: Unified diff
bugfix: /Makefile: postgres_restart-*: argument to echo always needs quotes