diff options
Diffstat (limited to 'system/postgresql/rc.postgresql.new')
-rw-r--r-- | system/postgresql/rc.postgresql.new | 37 |
1 files changed, 25 insertions, 12 deletions
diff --git a/system/postgresql/rc.postgresql.new b/system/postgresql/rc.postgresql.new index a505e69572..f4475f3605 100644 --- a/system/postgresql/rc.postgresql.new +++ b/system/postgresql/rc.postgresql.new @@ -1,19 +1,32 @@ #!/bin/bash -## PostgreSQL startup script for Slackware Linux -## -## Copyright (c) 2007-2014 Adis Nezirovic <adis _at_ linux.org.ba> -## Licensed under GNU GPL v2 - -# Do not source this script (since it contains exit() calls) - -# Before you can run PostgreSQL you'll need to create the -# database files in /var/lib/pgsql. The following should do -# the trick. +# PostgreSQL startup script for Slackware Linux +# +# $Revision: 61c366027519 $ +# $Date: 2014/03/08 06:55:06 $ # -# $ su postgres -c "initdb -D /var/lib/pgsql/@PG_VERSION@/data -E utf-8 -A md5 -W" +# Copyright 2007-2014 Adis Nezirovic <adis_at_linux.org.ba> +# All rights reserved. # +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# Do not source this script (since it contains exit() calls) +# # Since version 9.3 this startup script can run multiple PostgreSQL # versions on different ports and with different data dirs. # @@ -67,7 +80,7 @@ case "$1" in if [ ! -e $DATADIR/PG_VERSION ]; then echo "You should initialize the PostgreSQL database at location $DATADIR" - echo "e.g. su postgres -c \"initdb -D $DATADIR -E utf-8 -A md5 -W\"" + echo "e.g. su postgres -c \"initdb -D $DATADIR --locale=en_US.UTF-8 -A md5 -W\"" exit 6 fi |