From 0784ceef49885f8a24b2a87bc34a0fb1fa6e4b23 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Tue, 23 Oct 2012 13:03:26 +0200 Subject: [PATCH] pgtest.sh: Added 'restart' command. This will restart the PostgreSQL server in the background if it was running previously. --- pgtest.sh | 3 +++ 1 file changed, 3 insertions(+) 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 "" -- 2.30.2