Skip to content

Commit 6768953

Browse files
axonasifsagor999
authored andcommitted
Update postgresql-hook.bash
1 parent 9ff4fb6 commit 6768953

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

chunks/tool-postgresql/postgresql-hook.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
}; fi
1313

1414
if ! [[ "$(pg_ctl status)" =~ PID ]]; then {
15-
pg_start >/dev/null
15+
printf 'INFO: %s\n' "Executing command: pg_start"
16+
pg_start
1617
trap "pg_stop" TERM EXIT
1718
exec {sfd}<> <(:)
19+
printf 'INFO: %s\n' \
20+
"Please create another terminal" \
21+
"this one is monitoring postgres server for gracefully shutting down when needed"
1822
until read -r -t 3600 -u $sfd; do continue; done
1923
}; fi
2024

0 commit comments

Comments
 (0)