diff options
Diffstat (limited to 'databases/postgresql83-server/files')
-rw-r--r-- | databases/postgresql83-server/files/pgsql.sh.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/postgresql83-server/files/pgsql.sh.tmpl b/databases/postgresql83-server/files/pgsql.sh.tmpl index e775aab1d5fd..46aff1eb4718 100644 --- a/databases/postgresql83-server/files/pgsql.sh.tmpl +++ b/databases/postgresql83-server/files/pgsql.sh.tmpl @@ -11,7 +11,7 @@ start) [ -d %%PREFIX%%/%%PG_PREFIX%%lib ] && /sbin/ldconfig -m %%PREFIX%%/%%PG_PREFIX%%lib [ -x ${PGBIN}/pg_ctl ] && { su -l pgsql -c \ - 'exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -w -l ~pgsql/errlog' + '[ -d ${PGDATA} ] && exec %%PREFIX%%/%%PG_PREFIX%%bin/pg_ctl start -s -w -l ~pgsql/errlog' echo -n ' pgsql' } ;; |