From 5d05922979387b974393481c565fdba3099b29ba Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 9 Jan 2012 15:24:29 -0500 Subject: Resurrect startup check for database presence. --- postgresql.service | 1 + 1 file changed, 1 insertion(+) (limited to 'postgresql.service') diff --git a/postgresql.service b/postgresql.service index 0c733bd..e59ce5c 100644 --- a/postgresql.service +++ b/postgresql.service @@ -25,6 +25,7 @@ StandardOutput=syslog # Disable OOM kill on the postmaster OOMScoreAdjust=-1000 +ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGDATA} ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o "-p ${PGPORT}" -w -t 300 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast ExecReload=/usr/bin/pg_ctl reload -D ${PGDATA} -s -- cgit