mirror of
https://github.com/wassname/docker-postgresql.git
synced 2026-07-20 12:20:25 +08:00
start the postgresql server directly without using the init.d script
This commit is contained in:
@@ -39,4 +39,7 @@ if [ -f /var/lib/postgresql/pwfile ]; then
|
|||||||
echo "|------------------------------------------------------------------|"
|
echo "|------------------------------------------------------------------|"
|
||||||
fi
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user