aboutsummaryrefslogtreecommitdiff
path: root/system/postgresql/rc.postgresql.new
diff options
context:
space:
mode:
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 f4475f36058b..9369fca4254a 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
;;