#!/bin/sh POSTGRESDIR=/usr/local/pgsql if [ -x /usr/local/pgsql/bin/postmaster -a -d /usr/local/pgsql/data ];then rm -f /tmp/.s.PGSQL.5432 su -l - postgres -c "/usr/local/pgsql/bin/postmaster -S -i" echo -n 'PostgreSQL Service Started' fi
を置いたのですがログイン後、コマンドラインでpsql -lを実行すると
Connection to database 'template1' failed. connectDB() -- connect() failed: No such file or directory Is the postmaster running at 'localhost' and accepting connections on Unix socket '5432'?