]> git.pld-linux.org Git - packages/postgresql.git/blobdiff - postgresql.init
- up to 9.3.0
[packages/postgresql.git] / postgresql.init
index 06dd78c8edcee9a7fd457242dc578de2750dd212..1a5f91bdc3a94e7a507c69349c4f041b73930e6f 100644 (file)
@@ -92,8 +92,9 @@ pgstatus() {
 # $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
 }
 
 #
@@ -166,6 +167,9 @@ stop() {
        pgsubsys
 }
 
+
+upstart_controlled --except status init
+
 RETVAL=0
 # See how we were called.
 # Every action is performed for all given (all configured by default)
This page took 0.025579 seconds and 4 git commands to generate.