From 389217111ba43414cc60efcc002dca31910e6bf6 Mon Sep 17 00:00:00 2001 From: milisbir Date: Wed, 13 Jun 2018 05:19:31 +0200 Subject: [PATCH] pgsql --- ayarlar/servisler/mbd/init.d/postgresql | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ayarlar/servisler/mbd/init.d/postgresql b/ayarlar/servisler/mbd/init.d/postgresql index dcd32e585..73d8b4d75 100644 --- a/ayarlar/servisler/mbd/init.d/postgresql +++ b/ayarlar/servisler/mbd/init.d/postgresql @@ -33,8 +33,11 @@ case "$1" in start) 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 + su - postgres -c '/usr/bin/pg_ctl start -W -D /srv/pgsql/data \ -l /srv/pgsql/data/logfile -o "-i" '