SOURCES: postgresql.init - start-stop-daemon (called when RC_LOGGING=no") d...

gotar gotar at pld-linux.org
Sun Oct 12 20:29:39 CEST 2008


Author: gotar                        Date: Sun Oct 12 18:29:39 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- start-stop-daemon (called when RC_LOGGING=no") doesn't exit from
  error=`...` test

---- Files affected:
SOURCES:
   postgresql.init (1.76 -> 1.77) 

---- Diffs:

================================================================
Index: SOURCES/postgresql.init
diff -u SOURCES/postgresql.init:1.76 SOURCES/postgresql.init:1.77
--- SOURCES/postgresql.init:1.76	Sat Jul  5 23:37:04 2008
+++ SOURCES/postgresql.init	Sun Oct 12 20:29:34 2008
@@ -92,8 +92,9 @@
 # $1 - db cluster
 #
 pgstart() {
+	is_no $RC_LOGGING && fork=--fork
 	msg_starting "PostgreSQL $1"
-	daemon --user postgres /usr/bin/pg_ctl -s -w -D $1 start
+	daemon $fork --user postgres /usr/bin/pg_ctl -s -w -D $1 start
 }
 
 #
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/postgresql.init?r1=1.76&r2=1.77&f=u



More information about the pld-cvs-commit mailing list