diff options
Diffstat (limited to 'databases/postgresql80-server/files/postgresql.in')
-rw-r--r-- | databases/postgresql80-server/files/postgresql.in | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/databases/postgresql80-server/files/postgresql.in b/databases/postgresql80-server/files/postgresql.in index d3014f580dc0..1b3b4226acdf 100644 --- a/databases/postgresql80-server/files/postgresql.in +++ b/databases/postgresql80-server/files/postgresql.in @@ -12,6 +12,10 @@ # # optional # postgresql_data="%%PREFIX%%/pgsql/data" # postgresql_flags="-w -s -m fast" +# postgresql_initdb_flags="--encoding=utf-8 --lc-collate=C" +# postgresql_class="default" +# +# See %%PREFIX%%/share/doc/postgresql/README-server for more info # # This scripts takes one of the following commands: # @@ -20,9 +24,9 @@ # For postmaster startup options, edit ${postgresql_data}/postgresql.conf prefix=%%PREFIX%% +command=${prefix}/bin/pg_ctl . %%RC_SUBR%% -command=${prefix}/bin/pg_ctl load_rc_config postgresql @@ -32,6 +36,7 @@ postgresql_flags=${postgresql_flags:-"-w -s -m fast"} postgresql_user=pgsql eval postgresql_data=${postgresql_data:-"~${postgresql_user}/data"} postgresql_class=${postgresql_class:-"default"} +postgresql_initdb_flags=${postgresql_initdb_flags:-"--encoding=utf-8 --lc-collate=C"} name=postgresql rcvar=`set_rcvar` @@ -53,7 +58,7 @@ postgresql_command() postgresql_initdb() { - su -l -c ${postgresql_class} ${postgresql_user} -c "exec ${prefix}/bin/initdb -D ${postgresql_data}" + su -l -c ${postgresql_class} ${postgresql_user} -c "exec ${prefix}/bin/initdb ${postgresql_initdb_flags} -D ${postgresql_data}" } run_rc_command "$1" |