diff options
author | kreon | 2015-08-29 05:04:55 +0300 |
---|---|---|
committer | kreon | 2015-08-29 05:04:55 +0300 |
commit | b03782acb6b27472b5babb148e49dde1818f9f55 (patch) | |
tree | 5be5b97aad2c83589977fc66ad62c0ba6975db91 /postgresql.service | |
parent | a4220005a370089e1711eaa96be40a7d53d14bc0 (diff) | |
download | aur-b03782acb6b27472b5babb148e49dde1818f9f55.tar.gz |
fixes of build files
Diffstat (limited to 'postgresql.service')
-rw-r--r-- | postgresql.service | 12 |
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] |