git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6293665
)
/etc/init.d/postgresql fails if it is not running
author
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 18 Jan 2007 22:09:14 +0000
(22:09 +0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Thu, 18 Jan 2007 22:09:14 +0000
(22:09 +0000)
plc.d/postgresql
patch
|
blob
|
history
diff --git
a/plc.d/postgresql
b/plc.d/postgresql
index
bd5ca7a
..
d2dbda3
100755
(executable)
--- a/
plc.d/postgresql
+++ b/
plc.d/postgresql
@@
-7,7
+7,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# 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"
;;