aboutsummaryrefslogtreecommitdiffstats
path: root/databases/postgresql7/files
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2001-04-26 01:17:56 +0800
committerolgeni <olgeni@FreeBSD.org>2001-04-26 01:17:56 +0800
commite49d1d49d957693cdbd919d6d39eb7e6a8460a16 (patch)
treee7d2af3c8d13aedd74719cf508d5d501d8572328 /databases/postgresql7/files
parent023c8a7e05316ba7f6621a10186087a732ac1080 (diff)
downloadfreebsd-ports-gnome-e49d1d49d957693cdbd919d6d39eb7e6a8460a16.tar.gz
freebsd-ports-gnome-e49d1d49d957693cdbd919d6d39eb7e6a8460a16.tar.zst
freebsd-ports-gnome-e49d1d49d957693cdbd919d6d39eb7e6a8460a16.zip
Misc. changes and cleanups.
* Move the call to configure.postgresql7 from pre-fetch to pre-extract, so it won't hang while performing batch fetch operations (like portupgrade -F) * Add some TCL related files to pkg-plist.tcl, and add a PLIST_SUB in the Makefile to register the correct tcl version in the plist. * Do not start postgresql if the database directory does not exist: the startup sequence could hang because of this. * Use the "-s" option when starting postgresql with pg_ctl, so it won't display informational messages. Display only the port name, as do other packages startup scripts. Approved by: Palle Girgensohn <girgen@partitur.se>
Diffstat (limited to 'databases/postgresql7/files')
-rw-r--r--databases/postgresql7/files/pgsql.sh.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/databases/postgresql7/files/pgsql.sh.tmpl b/databases/postgresql7/files/pgsql.sh.tmpl
index e775aab1d5fd..46aff1eb4718 100644
--- a/databases/postgresql7/files/pgsql.sh.tmpl
+++ b/databases/postgresql7/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'
}
;;