From b8ca51749cfebb9294f1335a570a22420eaa603c Mon Sep 17 00:00:00 2001 From: Adis Nezirovic Date: Thu, 8 Jan 2015 17:03:57 +0700 Subject: system/postgresql: Updated for version 9.4.0. Signed-off-by: Willy Sudiarto Raharjo --- system/postgresql/rc.postgresql.new | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) (limited to 'system/postgresql/rc.postgresql.new') diff --git a/system/postgresql/rc.postgresql.new b/system/postgresql/rc.postgresql.new index f4475f3605..9369fca425 100644 --- a/system/postgresql/rc.postgresql.new +++ b/system/postgresql/rc.postgresql.new @@ -2,8 +2,8 @@ # PostgreSQL startup script for Slackware Linux # -# $Revision: 61c366027519 $ -# $Date: 2014/03/08 06:55:06 $ +# $Revision: b8124de4727c $ +# $Date: 2015/01/08 06:23:01 $ # # Copyright 2007-2014 Adis Nezirovic # All rights reserved. @@ -92,20 +92,10 @@ case "$1" in fi exit 1 - else # remove old socket, if it exists and no daemon is running. - - if [ ! -f $PIDFILE ]; then - rm -f /tmp/.s.PGSQL.$PG_PORT - rm -f /tmp/.s.PGSQL.$PG_PORT.lock - test x"$OOM_SCORE_ADJ" != x && echo "$OOM_SCORE_ADJ" > /proc/self/oom_score_adj - pg_ctl start -w -l $LOGFILE -D $DATADIR - exit 0 - else - echo "PostgreSQL daemon was not properly shut down" - echo "Please remove stale pid file $PIDFILE" - exit 7 - fi - + else + test x"$OOM_SCORE_ADJ" != x && echo "$OOM_SCORE_ADJ" > /proc/self/oom_score_adj + pg_ctl start -w -l $LOGFILE -D $DATADIR + exit 0 fi ;; -- cgit v1.2.3