]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- simplify pgstart (use daemon()); add -s option (be quiet, only errors)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 13 May 2005 08:09:00 +0000 (08:09 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    postgresql.init -> 1.64

postgresql.init

index 9b77122e585b38642a2d5266ac0896775e739b76..8cabf3528d52664117a78e224c066f9fc25cf3e5 100644 (file)
@@ -91,16 +91,7 @@ pgstatus() {
 #
 pgstart() {
        msg_starting "PostgreSQL $1"
-       busy
-       TMPDIR=/tmp su postgres -c "/usr/bin/pg_ctl -w -D $1 start 2>&1 >/dev/null"
-       sleep 1
-       pgstatus "$1"
-
-       if [ "$PG_STATUS" != "unknown" -a "$PG_PID" != "unknown" ]; then
-               ok
-       else
-               fail 
-       fi
+       daemon --user postgres /usr/bin/pg_ctl -s -w -D $1 start
 }
 
 #
This page took 0.131899 seconds and 4 git commands to generate.