Project

General

Profile

« Previous | Next » 

Revision 8627

bugfix: root Makefile: $(postgresReload-Linux): fixed the "shmat(id=...) failed: Cannot allocate memory" error by telling the user to restart PostgreSQL manually from the command line

View differences:

Makefile
138 138
linuxPostgresDir := /etc/postgresql/9.1/main
139 139
define pg_ctl-Linux
140 140
$(asAdmin) /etc/init.d/postgresql $(1)
141
sleep 2
142 141
endef
143 142

  
144 143
macPostgresDir := /Library/PostgreSQL/9.1
......
171 170
$(asAdmin) cp --preserve=timestamps schemas/postgresql.conf $(linuxPostgresDir)/postgresql.conf
172 171
-$(asAdmin) mv -n $(linuxPostgresDir)/pg_hba.conf $(linuxPostgresDir)/pg_hba.conf.old
173 172
$(asAdmin) cp --preserve=timestamps schemas/pg_hba.conf $(linuxPostgresDir)/pg_hba.conf
174
$(call pg_ctl-Linux,restart)
173
@echo $(emph)'restart PostgreSQL manually:'$(endEmph)
174
@echo $(call pg_ctl-Linux,restart)
175
@$(wait)
175 176

  
176 177
endef
177 178

  

Also available in: Unified diff