phpgroupware-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Phpgroupware-users] postgres : Cannot connect to database for confi


From: Oliver Koppisch
Subject: Re: [Phpgroupware-users] postgres : Cannot connect to database for configuration
Date: Thu, 28 Mar 2002 15:09:46 +0100

thanks a lot, works great,

in addition here a piece of my starup-script to bring up postgres at
start-up.


-----SNIP---------------



case "$1" in
    start)
        echo -n "Starting POSTGRES: "
        ## Start daemon with startproc(8). If this fails
        ## the echo return value is set appropriate.

        # startproc should return 0, even if service is
        # already running to match LSB spec.
        su -c '/usr/local/pgsql/bin/pg_ctl start -o "-i -p 5432" -D
/usr/local/pgsql/data -l /var/log/postgres' postgres

        # Remember status and be verbose
        rc_status -v
        ;;
    stop)
        echo -n "Shutting down POSTGRES: "
        ## Stop daemon with killproc(8) and if this fails
        ## set echo the echo return value.

        su -c '/usr/local/pgsql/bin/pg_ctl stop -D /usr/local/pgsql/data -l
/var/log/postgres' postgres

---------------SNAP---------------------------------------------------

This is SuSE-style startup. Does not comply with LSB and is NOT "State of
the Art"-Programming, but it works.

Greetings from Freiburg/D

Oliver

Attachment: Oliver Koppisch.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]