]> granicus.if.org Git - postgresql/blobdiff - contrib/start-scripts/linux
Remove cvs keywords from all files.
[postgresql] / contrib / start-scripts / linux
index e1ea1e3da4bbf39deda6759817e95b9c7764a694..4ad66917e6508aa507265962ab03e7a60ab14056 100644 (file)
@@ -24,7 +24,7 @@
 
 # Original author:  Ryan Kirkpatrick <pgsql@rkirkpat.net>
 
-# $PostgreSQL: pgsql/contrib/start-scripts/linux,v 1.10 2010/01/11 18:39:32 tgl Exp $
+# contrib/start-scripts/linux
 
 ## EDIT FROM HERE
 
@@ -64,7 +64,15 @@ PGCTL="$prefix/bin/pg_ctl"
 set -e
 
 # Only start if we can find the postmaster.
-test -x $DAEMON || exit 0
+test -x $DAEMON ||
+{
+       echo "$DAEMON not found"
+       if [ "$1" = "stop" ]
+       then exit 0
+       else exit 5
+       fi
+}
+
 
 # Parse command line parameters.
 case $1 in