diff options
Diffstat (limited to 'databases/postgresql13-server/files')
-rw-r--r-- | databases/postgresql13-server/files/pkg-message-server.in | 14 | ||||
-rw-r--r-- | databases/postgresql13-server/files/postgresql.in | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/databases/postgresql13-server/files/pkg-message-server.in b/databases/postgresql13-server/files/pkg-message-server.in index 84a13f7cb47c..9bfbcc7b4a83 100644 --- a/databases/postgresql13-server/files/pkg-message-server.in +++ b/databases/postgresql13-server/files/pkg-message-server.in @@ -14,7 +14,7 @@ is a periodic script, %%PREFIX%%/etc/periodic/daily/502.pgsql, that you may find useful. You can use it to backup and perform vacuum on all databases nightly. Per default, it performs `vacuum analyze'. See the script for instructions. For autovacuum settings, please review -~pgsql/data/postgresql.conf. +~postgres/data/postgresql.conf. If you plan to access your PostgreSQL server using ODBC, please consider running the SQL script %%PREFIX%%/share/postgresql/odbc.sql @@ -48,17 +48,17 @@ You can then start PostgreSQL by running: %%PREFIX%%/etc/rc.d/postgresql start -For postmaster settings, see ~pgsql/data/postgresql.conf +For postmaster settings, see ~postgres/data/postgresql.conf NB. FreeBSD's PostgreSQL port logs to syslog by default - See ~pgsql/data/postgresql.conf for more info + See ~postgres/data/postgresql.conf for more info NB. If you're not using a checksumming filesystem like ZFS, you might - wish to enable data checksumming. It can only be enabled during + wish to enable data checksumming. It can be enabled during the initdb phase, by adding the "--data-checksums" flag to - the postgres_initdb_flags rcvar. Check the initdb(1) manpage - for more info and make sure you understand the performance - implications. + the postgresql_initdb_flags rcvar. Otherwise you can enable it later by + pg_checksums. Check the initdb(1) manpage for more info + and make sure you understand the performance implications. ====================================================================== diff --git a/databases/postgresql13-server/files/postgresql.in b/databases/postgresql13-server/files/postgresql.in index a123816264b8..d04d3c3fd1a8 100644 --- a/databases/postgresql13-server/files/postgresql.in +++ b/databases/postgresql13-server/files/postgresql.in @@ -1,7 +1,7 @@ #!/bin/sh # PROVIDE: postgresql -# REQUIRE: sshd +# REQUIRE: SERVERS # KEYWORD: shutdown # # Add the following line to /etc/rc.conf to enable PostgreSQL: @@ -11,7 +11,7 @@ # postgresql_data="/var/db/%%PG_USER%%/data13" # postgresql_flags="-w -s -m fast" # postgresql_initdb_flags="--encoding=utf-8 --lc-collate=C" -# postgresql_class="default" +# postgresql_login_class="default" # postgresql_profiles="" # # See %%PREFIX%%/share/doc/postgresql/README-server for more info @@ -33,7 +33,7 @@ postgresql_enable=${postgresql_enable:-"NO"} postgresql_flags=${postgresql_flags:-"-w -s -m fast"} postgresql_user=${postgresql_user:-"%%PG_USER%%"} eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data13"} -postgresql_class=${postgresql_class:-"default"} +postgresql_login_class=${postgresql_login_class:-"default"} postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql @@ -109,7 +109,7 @@ postgresql_command() postgresql_initdb() { - ${su_cmd} -l -c ${postgresql_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" + ${su_cmd} -l -c ${postgresql_login_class} ${postgresql_user} -c "exec %%PREFIX%%/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data} -U ${postgresql_user}" } run_rc_command "$1" |