rpms/postgresql-pgpool-II/EL-4 pgpool.init, 1.2, 1.3 pgpool.sysconfig, 1.1, 1.2
Devrim GÜNDÜZ
devrim at fedoraproject.org
Thu Oct 22 11:59:34 UTC 2009
- Previous message (by thread): rpms/sblim-cmpi-dns/F-11 sblim-cmpi-dns-0.5.2-include.patch, NONE, 1.1 sblim-cmpi-dns.spec, NONE, 1.1 sources, 1.1, 1.2
- Next message (by thread): rpms/postgresql-pgpool-II/EL-5 pgpool.init, 1.2, 1.3 pgpool.sysconfig, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: devrim
Update of /cvs/extras/rpms/postgresql-pgpool-II/EL-4
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8836/EL-4
Modified Files:
pgpool.init pgpool.sysconfig
Log Message:
Fix logging, per report from Toshihiro Kitagawa.
Index: pgpool.init
===================================================================
RCS file: /cvs/extras/rpms/postgresql-pgpool-II/EL-4/pgpool.init,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- pgpool.init 23 Mar 2009 09:36:41 -0000 1.2
+++ pgpool.init 22 Oct 2009 11:59:34 -0000 1.3
@@ -11,6 +11,9 @@
#
# v2.2 Devrim GUNDUZ <devrim at CommandPrompt.com>
# - New and improved version which has some fixes.
+#
+# v2.2.5 Devrim GUNDUZ <devrim at CommandPrompt.com>
+# - Fix logging.
if [ -r /etc/sysconfig/pgpool ]; then
. /etc/sysconfig/pgpool
@@ -37,6 +40,14 @@ then
NAME=${NAME:3}
fi
+# For SELinux we need to use 'runuser' not 'su'
+if [ -x /sbin/runuser ]
+then
+ SU=runuser
+else
+ SU=su
+fi
+
# Set defaults for configuration variables
PGPOOLENGINE=/usr/bin
PGPOOLDAEMON=$PGPOOLENGINE/pgpool
@@ -85,7 +96,7 @@ start(){
echo -n "$PGPOOL_START"
- $PGPOOLDAEMON -f $PGPOOLCONF $OPTS & >> "$PGPOOLLOG" 2>&1 < /dev/null
+ $SU -l postgres -c "$PGPOOLDAEMON -f $PGPOOLCONF $OPTS & " >> "$PGPOOLLOG" 2>&1 < /dev/null
sleep 2
pid=`pidof -s "$PGPOOLDAEMON"`
Index: pgpool.sysconfig
===================================================================
RCS file: /cvs/extras/rpms/postgresql-pgpool-II/EL-4/pgpool.sysconfig,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- pgpool.sysconfig 16 Aug 2007 09:22:28 -0000 1.1
+++ pgpool.sysconfig 22 Oct 2009 11:59:34 -0000 1.2
@@ -4,3 +4,4 @@
# -d: debug mode. lots of debug information will be printed
#OPTS=" -d -n"
+OPTS=" -n"
- Previous message (by thread): rpms/sblim-cmpi-dns/F-11 sblim-cmpi-dns-0.5.2-include.patch, NONE, 1.1 sblim-cmpi-dns.spec, NONE, 1.1 sources, 1.1, 1.2
- Next message (by thread): rpms/postgresql-pgpool-II/EL-5 pgpool.init, 1.2, 1.3 pgpool.sysconfig, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list