Comment 2 for bug 955164

Revision history for this message
Andreas Ntaflos (daff) wrote :

This is not really a bug. Sure, the resource agent has defaults set that don't match Ubuntu's, but every relevant parameter can (and probably should) be set explicitly in the CIB. For example:

primitive p_postgresql ocf:heartbeat:pgsql \
        params pgctl="/usr/lib/postgresql/9.1/bin/pg_ctl" psql="/usr/bin/psql" pgdata="/var/lib/postgresql/9.1/main" config="/etc/postgresql/9.1/main/postgresql.conf" logfile="/var/log/postgresql/postgresql-9.1-main.log" \
        op start interval="0" timeout="120s" \
        op stop interval="0" timeout="120s" \
        op monitor interval="30s" timeout="30s"

The resource agent is able to start a PostgreSQL server just fine, having the parameters set to correct values.