search for: postgreslog

Displaying 1 result from an estimated 1 matches for "postgreslog".

Did you mean: postgreslock
2010 Feb 04
0
How to start/stop database from rake?
...For this, I have created a little wrapper around rake: $ cat run-rake #! /bin/sh DB=`pwd`/db/pgdata # init database cluster if it does not exist yet [ -d $DB ] || initdb -D$DB # start the database server pg_ctl -D$DB -o "-h '''' -k $DB" -l postgreslog start # wait for it to accept connections sleep 1 # run rake with original arguments rake "$*" # we''re done, stop database server again pg_ctl -D$DB -o "-h '''' -k $DB" -l postgreslog stop But this doesn''t "fee...