summarylogtreecommitdiffstats
path: root/postgresql.service
diff options
context:
space:
mode:
authorkreon2015-08-29 05:04:55 +0300
committerkreon2015-08-29 05:04:55 +0300
commitb03782acb6b27472b5babb148e49dde1818f9f55 (patch)
tree5be5b97aad2c83589977fc66ad62c0ba6975db91 /postgresql.service
parenta4220005a370089e1711eaa96be40a7d53d14bc0 (diff)
downloadaur-b03782acb6b27472b5babb148e49dde1818f9f55.tar.gz
fixes of build files
Diffstat (limited to 'postgresql.service')
-rw-r--r--postgresql.service12
1 files changed, 3 insertions, 9 deletions
diff --git a/postgresql.service b/postgresql.service
index 76f6dd2f499e..f2eaa51f4eb7 100644
--- a/postgresql.service
+++ b/postgresql.service
@@ -3,7 +3,7 @@ Description=PostgreSQL-1C database server
After=network.target
[Service]
-Type=forking
+Type=simple
TimeoutSec=120
User=postgres
Group=postgres
@@ -12,14 +12,8 @@ Environment=PGROOT=/var/lib/postgres
SyslogIdentifier=postgres
PIDFile=/var/lib/postgres/postmaster.pid
-
-#ExecStartPre=/usr/bin/bin/postgresql-check-db-dir ${PGROOT}/data
-ExecStart=/usr/bin/pg_ctl -D ${PGROOT}/data start
-ExecReload=/usr/bin/pg_ctl -D ${PGROOT}/data reload
-ExecStop=/usr/bin/pg_ctl -D ${PGROOT}/data stop
-
-# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
-# killing Postgres, so adjust it downward
+ExecStart=/usr/bin/postgres -D ${PGROOT}/data
+PrivateTmp=yes
OOMScoreAdjust=-200
[Install]