[Linux-HA] pgsql script...

Andrew Beekhof beekhof at gmail.com
Mon Nov 20 07:36:17 MST 2006


any chance you could send that as a diff?

On 11/20/06, Andre van der Vlies <andre at vandervlies.xs4all.nl> wrote:
>
> I have changed the OCF pfgsql script a bit..
>
> line 158
> #pgsql_start: Starts PostgreSQL
> pgsql_start() {
>     if pgsql_status
>     then
>         ocf_log info "PostgreSQL is already running. PID=`cat $PIDFILE`"
>         return $OCF_SUCCESS
>     fi
>
>     if [ -x $PGCTL ]
>     then
>         # Check if we need to create a log file
>         if ! check_log_file $LOGFILE
>         then
>             ocf_log err "PostgreSQL can't create a log file: $LOGFILE"
>             return $OCF_ERR_GENERIC
>         fi
>
>         if runasowner "$PGCTL -D $PGDATA -l $LOGFILE -o "\'$STARTOPT\'"
> start > /dev/null 2>&1"
>
> to
> #pgsql_start: Starts PostgreSQL
> pgsql_start() {
>     if pgsql_status
>     then
>         ocf_log info "PostgreSQL is already running. PID=`cat $PIDFILE`"
>         return $OCF_SUCCESS
>     fi
>
>     if [ -x $PGCTL ]
>     then
>
>         if runasowner "$PGCTL -w -D $PGDATA -o "\'$STARTOPT\'" start >
> /dev/null 2>&1"
>
>
> My DBA tells me that the logfile stuff is regulated in .../postmaster.conf,
> the '-w' tells $PGCTL to wait until all (postgres) resources are available...
>
> --
>                Andre van der Vlies <andre at vandervlies.xs4all.nl>
>                Certifiable UNIX engineer
>                Homepage: http://vandervlies.xs4all.nl/~andre
> Key fingerprint = 397C 7479 67DB 9306 23DC B423 7B58 CD5A 6EFF 5CF8
> --
>     "Programming isn't a craft, it's an art."
>     ()  ascii ribbon campaign - against html e-mail
>     /\                        - against microsoft attachments
>                               ^[^#]
> --
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list