resources/mongrel_cluster in mongrel_cluster-0.2.0 vs resources/mongrel_cluster in mongrel_cluster-0.2.1
- old
+ new
@@ -10,9 +10,16 @@
#
CONF_DIR=/etc/mongrel_cluster
RETVAL=0
+
+# Gracefully exit if the controller is missing.
+which mongrel_cluster_ctl >/dev/null || exit 0
+
+# Go no further if config directory is missing.
+[ -d "$CONF_DIR" ] || exit 0
+
case "$1" in
start)
mongrel_cluster_ctl start -c $CONF_DIR
RETVAL=$?
;;
\ No newline at end of file