summaryrefslogtreecommitdiff
path: root/system/postgresql/rc.postgresql.new
diff options
context:
space:
mode:
authorAdis Nezirovic <adis@linux.org.ba>2015-01-08 17:03:57 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-01-08 17:03:57 +0700
commitb8ca51749cfebb9294f1335a570a22420eaa603c (patch)
tree9fdb5c037f0c77f9db0cbc64205e142897942ce0 /system/postgresql/rc.postgresql.new
parent5aff91909fbd42d91f861862c413f7e05f27be47 (diff)
downloadslackbuilds-b8ca51749cfebb9294f1335a570a22420eaa603c.tar.gz
system/postgresql: Updated for version 9.4.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/postgresql/rc.postgresql.new')
-rw-r--r--system/postgresql/rc.postgresql.new22
1 files changed, 6 insertions, 16 deletions
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 <adis_at_linux.org.ba>
# 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
;;