update
This commit is contained in:
		@@ -47,9 +47,9 @@ function Init {
 | 
			
		||||
 | 
			
		||||
function StartProc {
 | 
			
		||||
    Print Starting pgsql ...
 | 
			
		||||
    local sock="/tmp/.s.PGSQL.$(su - postgres -c 'postmaster -C port')"
 | 
			
		||||
    local sock="/tmp/.s.PGSQL.$(su - postgres -c 'postgres -C port')"
 | 
			
		||||
    rm -f $sock
 | 
			
		||||
    su - postgres -c postmaster &
 | 
			
		||||
    su - postgres -c postgres &
 | 
			
		||||
    PIDS="$PIDS $!"
 | 
			
		||||
    while sleep 1; do
 | 
			
		||||
        [ -e $sock ] && break || echo -n .
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user