[arch-commits] Commit in pgbouncer/trunk (3 files)
Dan McGee
dan at archlinux.org
Tue Jan 15 15:39:51 UTC 2013
Date: Tuesday, January 15, 2013 @ 10:39:50
Author: dan
Revision: 175155
upgpkg: pgbouncer 1.5.4-4
Fix some group/permission issues
Modified:
pgbouncer/trunk/PKGBUILD
pgbouncer/trunk/pgbouncer.install
pgbouncer/trunk/pgbouncer.service
-------------------+
PKGBUILD | 4 ++--
pgbouncer.install | 5 +++++
pgbouncer.service | 6 +++---
3 files changed, 10 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-01-15 15:07:17 UTC (rev 175154)
+++ PKGBUILD 2013-01-15 15:39:50 UTC (rev 175155)
@@ -3,7 +3,7 @@
pkgname=pgbouncer
_dlid=3393
pkgver=1.5.4
-pkgrel=3
+pkgrel=4
pkgdesc="A lightweight connection pooler for PostgreSQL"
arch=('i686' 'x86_64')
url="http://pgfoundry.org/projects/pgbouncer"
@@ -18,7 +18,7 @@
pgbouncer.tmpfiles.conf)
md5sums=('9ffaf2e6232e18e676651429813732df'
'810813b9ef8891be382be9ffdd425edc'
- '9036ba469f700d52fc49ed406da089a2'
+ 'eede238f5ff3709dbfeef6dad3fbefc7'
'472659f4c5de2b59a420f5ca42327ec1')
build() {
Modified: pgbouncer.install
===================================================================
--- pgbouncer.install 2013-01-15 15:07:17 UTC (rev 175154)
+++ pgbouncer.install 2013-01-15 15:39:50 UTC (rev 175155)
@@ -8,8 +8,13 @@
fi
chown pgbouncer:pgbouncer /var/log/pgbouncer
systemd-tmpfiles --create pgbouncer.conf
+ post_update
}
+post_update() {
+ gpasswd -a pgbouncer postgres
+}
+
post_remove() {
if getent passwd pgbouncer >/dev/null; then
userdel pgbouncer
Modified: pgbouncer.service
===================================================================
--- pgbouncer.service 2013-01-15 15:07:17 UTC (rev 175154)
+++ pgbouncer.service 2013-01-15 15:39:50 UTC (rev 175155)
@@ -3,9 +3,9 @@
After=network.target
[Service]
-Group=pgbouncer
-ExecStart=/usr/bin/pgbouncer -u pgbouncer /etc/pgbouncer/pgbouncer.ini
-ExecReload=/usr/bin/pgbouncer -R
+User=pgbouncer
+ExecStart=/usr/bin/pgbouncer /etc/pgbouncer/pgbouncer.ini
+ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
More information about the arch-commits
mailing list