summaryrefslogtreecommitdiffstats
path: root/postgresql.service
diff options
context:
space:
mode:
authorTom Lane <tgl@redhat.com>2012-01-09 15:24:29 -0500
committerTom Lane <tgl@redhat.com>2012-01-09 15:24:29 -0500
commit5d05922979387b974393481c565fdba3099b29ba (patch)
tree45ff240c3b11a2b536fe097e6926e7e531d27381 /postgresql.service
parent138ec5b92cdf62551b99143573527595bb5f3451 (diff)
downloadpostgresql-setup-5d05922979387b974393481c565fdba3099b29ba.tar.gz
postgresql-setup-5d05922979387b974393481c565fdba3099b29ba.tar.xz
postgresql-setup-5d05922979387b974393481c565fdba3099b29ba.zip
Resurrect startup check for database presence.
Diffstat (limited to 'postgresql.service')
-rw-r--r--postgresql.service1
1 files changed, 1 insertions, 0 deletions
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