This commit is contained in:
milisbir 2018-06-13 05:19:31 +02:00
parent bd074aa28a
commit 389217111b
1 changed files with 3 additions and 0 deletions

View File

@ -34,8 +34,11 @@ case "$1" in
start) start)
log_info_msg "Starting PostgreSQL daemon..." log_info_msg "Starting PostgreSQL daemon..."
[ ! -d /srv/pgsql/data ] && install -dm755 -o postgres -g postgres /srv/pgsql/data
install -dm755 -o postgres -g postgres /run/postgresql install -dm755 -o postgres -g postgres /run/postgresql
su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \ su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \
-l /srv/pgsql/data/logfile -o "-i" ' -l /srv/pgsql/data/logfile -o "-i" '
evaluate_retval evaluate_retval