[Pkg-postgresql-public] Bug#768261: pgbouncer: Support for running under different group

Antti Salmela asalmela at iki.fi
Thu Nov 6 07:50:02 UTC 2014


Package: pgbouncer
Version: 1.5.4-6
Severity: wishlist

Dear Maintainer,

please consider following patch to somewhat support running under different group.

*** End of the template - remove these lines ***

--- pgbouncer.old       2014-11-06 09:09:06.011673821 +0200
+++ pgbouncer.new       2014-11-06 09:26:25.066216300 +0200
@@ -63,7 +63,7 @@
     if [ $? -eq 0 ] ; then
        OLDPID=$(cat $PIDFILE)
        log_daemon_msg "Invoking PgBouncer restart" $NAME
-       su -c "$DAEMON -R $OPTS 2> /dev/null" - $RUNASUSER
+       su -c "$DAEMON -R $OPTS 2> /dev/null" - ${RUNASUSER%:*}
        if [ $? -ne 0 ]; then
             log_end_msg 1
             log_warning_msg "could not contact running instance"


-- System Information:
Shell: /bin/sh linked to /bin/dash

-- Configuration Files:
/etc/default/pgbouncer changed:
START=1
RUNASUSER=postgres:www-data

grep ^unix /etc/pgbouncer/pgbouncer.ini:
unix_socket_mode = 0770
unix_socket_group = www-data
unix_socket_dir = /var/run/postgresql

-- no debconf information



More information about the Pkg-postgresql-public mailing list