pgsql
This commit is contained in:
parent
bd074aa28a
commit
389217111b
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue