rpms/postgresql-pgpool-II/F-10 pgpool.init, 1.3, 1.4 pgpool.sysconfig, 1.1, 1.2

Devrim GÜNDÜZ devrim at fedoraproject.org
Thu Oct 22 11:59:35 UTC 2009


Author: devrim

Update of /cvs/extras/rpms/postgresql-pgpool-II/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv8836/F-10

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/F-10/pgpool.init,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -r1.3 -r1.4
--- pgpool.init	23 Mar 2009 01:00:22 -0000	1.3
+++ pgpool.init	22 Oct 2009 11:59:34 -0000	1.4
@@ -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/F-10/pgpool.sysconfig,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- pgpool.sysconfig	4 Aug 2007 22:10:30 -0000	1.1
+++ pgpool.sysconfig	22 Oct 2009 11:59:35 -0000	1.2
@@ -4,3 +4,4 @@
 # -d: debug mode. lots of debug information will be printed
 
 #OPTS=" -d -n"
+OPTS=" -n"




More information about the fedora-extras-commits mailing list