start the postgresql server directly without using the init.d script

This commit is contained in:
Sameer Naik
2014-07-04 10:24:30 +05:30
parent e4df972451
commit f35a11a04f
+4 -1
View File
@@ -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