X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fpostgresql;h=d2dbda37f6ad96d706394c0372e75df77707f474;hb=c789793e142f9a5bc181c36e0b9241b5e219e74c;hp=bd5ca7a00c253d7e86b934c93b87bfdbc81d02c0;hpb=629366505c7022d019a714c66affc9e1f10e9b55;p=myplc.git diff --git a/plc.d/postgresql b/plc.d/postgresql index bd5ca7a..d2dbda3 100755 --- a/plc.d/postgresql +++ b/plc.d/postgresql @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: postgresql,v 1.6 2006/10/27 20:29:20 mlhuang Exp $ +# $Id: postgresql,v 1.7 2006/11/16 18:50:32 mlhuang Exp $ # # Source function library and configuration @@ -147,7 +147,9 @@ case "$1" in # Shut down the server service postgresql stop - check + + # /etc/init.d/postgresql fails if it is not running + [ "$PLC_DB_ENABLED" = 1 ] && check result "$MESSAGE" ;;