anchor.diff:  # chkconfig: - 64 36
   # description: PostgreSQL database server.
   # processname: postmaster
  -# pidfile: /var/run/postmaster-9.1.pid
  +<% pg_dir = node[:postgresql][:dir] -%>
   
   # This script is slightly unusual in that the name of the daemon (postmaster)
   # is not the same as the name of the subsystem (postgresql)
  
positive.code:     stop
      ;;
    status)
      status -p /var/run/postmaster-9.1.pid
      script_result=$?
      ;;
    restart)
  
negative.code: export PGPORT
  
  lockfile="/var/lock/subsys/${NAME}"
  pidfile="<%= pg_dir %>/postmaster.pid"
  
  [ -f "$PGENGINE/postmaster" ] || exit 1
  
  