From f35a11a04f31d1008575a7fb9e134bea445018ce Mon Sep 17 00:00:00 2001 From: Sameer Naik Date: Fri, 4 Jul 2014 10:24:30 +0530 Subject: [PATCH] start the postgresql server directly without using the init.d script --- start | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/start b/start index 84ef95c..91e7b9d 100755 --- a/start +++ b/start @@ -39,4 +39,7 @@ if [ -f /var/lib/postgresql/pwfile ]; then echo "|------------------------------------------------------------------|" fi -/etc/init.d/postgresql start && tail -F /var/log/postgresql/postgresql-9.1-main.log +echo "Starting PostgreSQL server..." +sudo -u postgres -H /usr/lib/postgresql/9.1/bin/postgres \ + -D /var/lib/postgresql/9.1/main \ + -c config_file=/etc/postgresql/9.1/main/postgresql.conf