From 75c1dbc9e51613f670e880a1859ccdb188d95278 Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Sat, 28 Jun 2014 23:26:52 +0530 Subject: [PATCH] display postgres password before starting the postgresql server --- init | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/init b/init index 17094b8..ef193c9 100755 --- a/init +++ b/init @@ -28,9 +28,6 @@ if [ ! -d /var/lib/postgresql/9.1/main ]; then --username=postgres --encoding=unicode --auth=trust >/dev/null fi -echo "Starting PostgreSQL server..." -/etc/init.d/postgresql start - if [ -f /var/lib/postgresql/pwfile ]; then PG_PASSWORD=$(cat /var/lib/postgresql/pwfile) echo "|------------------------------------------------------------------|" @@ -42,4 +39,6 @@ if [ -f /var/lib/postgresql/pwfile ]; then echo "|------------------------------------------------------------------|" fi +echo "Starting PostgreSQL server..." +/etc/init.d/postgresql start tail -F /var/log/postgresql/postgresql-9.1-main.log