summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorGoliathLabs2020-05-25 11:50:55 +0200
committerGoliathLabs2020-05-25 11:50:55 +0200
commitf4f1ec4ef023c3d8213566a8cb7e39db626d934b (patch)
tree49ca48242f1e21b4a308752204bec1c51cd18ef8
parent87bb701cde5293c7c350232f142c981940b35df6 (diff)
downloadaur-f4f1ec4ef023c3d8213566a8cb7e39db626d934b.tar.gz
Updated: service file
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--postgresql.service7
3 files changed, 7 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d77e35daea7..0a95ec8a721 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = postgresql-9.6
pkgdesc = Sophisticated object-relational DBMS
pkgver = 9.6.18
- pkgrel = 2
+ pkgrel = 3
url = https://www.postgresql.org/
arch = i686
arch = x86_64
@@ -34,7 +34,7 @@ pkgbase = postgresql-9.6
sha256sums = 5f73b54ca6206bd2c469c507830261ebd167baca074698d8889d769c33f98a31
sha256sums = 57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5
sha256sums = 6abb842764bbed74ea4a269d24f1e73d1c0b1d8ecd6e2e6fb5fb10590298605e
- sha256sums = b53738c7cb71c5dbb99f39bc3cc67acada06f9b6768a817844adc833750b8cfb
+ sha256sums = bd7ff909fd40f54058d3a7df426af6e02146b5cda97736687bee0862d7d93eaf
sha256sums = 40da687da4fb1f6b35f406dd0f48922065d8c905d678e2a27da05806f874b780
sha256sums = 7fa8f0ef3f9d40abd4749cc327c2f52478cb6dfb6e2405bd0279c95e9ff99f12
sha256sums = 4a4c0bb9ceb156cc47e9446d8393d1f72b4fe9ea1d39ba17213359df9211da57
diff --git a/PKGBUILD b/PKGBUILD
index a87d4dd81e5..5afa25db73f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,7 @@
pkgbase=postgresql-9.6
pkgname=('postgresql-libs-9.6' 'postgresql-docs-9.6' 'postgresql-9.6')
pkgver=9.6.18
-pkgrel=2
+pkgrel=3
pkgdesc='Sophisticated object-relational DBMS'
url="https://www.postgresql.org/"
arch=('i686' 'x86_64')
@@ -30,7 +30,7 @@ sha256sums=('517ec282b785e6d22f360c30ba0c5e2a506fca5ca07dcc545427511d94c89999'
'5f73b54ca6206bd2c469c507830261ebd167baca074698d8889d769c33f98a31'
'57dfd072fd7ef0018c6b0a798367aac1abb5979060ff3f9df22d1048bb71c0d5'
'6abb842764bbed74ea4a269d24f1e73d1c0b1d8ecd6e2e6fb5fb10590298605e'
- 'b53738c7cb71c5dbb99f39bc3cc67acada06f9b6768a817844adc833750b8cfb'
+ 'bd7ff909fd40f54058d3a7df426af6e02146b5cda97736687bee0862d7d93eaf'
'40da687da4fb1f6b35f406dd0f48922065d8c905d678e2a27da05806f874b780'
'7fa8f0ef3f9d40abd4749cc327c2f52478cb6dfb6e2405bd0279c95e9ff99f12'
'4a4c0bb9ceb156cc47e9446d8393d1f72b4fe9ea1d39ba17213359df9211da57')
diff --git a/postgresql.service b/postgresql.service
index ad51b939734..7916457bb4a 100644
--- a/postgresql.service
+++ b/postgresql.service
@@ -16,10 +16,9 @@ RuntimeDirectory=postgresql
RuntimeDirectoryMode=755
ExecStartPre=/usr/bin/postgresql-check-db-dir ${PGROOT}/data
-ExecStart=/usr/bin/postgres -D ${PGROOT}/data
-ExecReload=/bin/kill -HUP ${MAINPID}
-KillMode=mixed
-KillSignal=SIGINT
+ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120
+ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT}/data reload
+ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast
# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
# killing Postgres, so adjust it downward