From: Sebastian Harl Date: Tue, 23 Oct 2012 11:03:26 +0000 (+0200) Subject: pgtest.sh: Added 'restart' command. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0784ceef49885f8a24b2a87bc34a0fb1fa6e4b23;p=postrr.git pgtest.sh: Added 'restart' command. This will restart the PostgreSQL server in the background if it was running previously. --- diff --git a/pgtest.sh b/pgtest.sh index 3c74629..fb033ff 100755 --- a/pgtest.sh +++ b/pgtest.sh @@ -91,6 +91,9 @@ case "$1" in $BIN_DIR/postgres -D $TARGET/var/lib/postgresql/main "$@" fi ;; + restart) + $0 stop && $0 start -B + ;; *) echo "Usage: $0 setup|client|stop|start" >&2 echo ""