postgresql

This commit is contained in:
milisbir 2018-06-21 10:05:08 +02:00
parent 8cdafd29af
commit fc3ebd9d9c
1 changed files with 2 additions and 0 deletions

2
ayarlar/servisler/mbd/init.d/postgresql Normal file → Executable file
View File

@ -26,6 +26,8 @@ case "$1" in
chown -Rv postgres:postgres /srv/pgsql /run/postgresql
su - postgres -c '/usr/bin/initdb -E UTF8 -D /srv/pgsql/data'
fi
mkdir -p /run/postgresql
chown -Rv postgres:postgres /run/postgresql
su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \
-l /srv/pgsql/data/logfile -o "-i" '
evaluate_retval