Sha256: 06069da0d0bd18af0402e8030620cc2098d8d348317f3f9f085ab855532ffd40
Contents?: true
Size: 861 Bytes
Versions: 20
Compression:
Stored size: 861 Bytes
Contents
#!/bin/bash # # Copyright (c) 2006 Bradley Taylor, bradley@railsmachine.com # # mongrel_cluster Startup script for Mongrel clusters. # # chkconfig: - 85 15 # description: mongrel_cluster manages multiple Mongrel processes for use \ # behind a load balancer. # 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=$? ;; stop) mongrel_cluster_ctl stop -c $CONF_DIR RETVAL=$? ;; restart) mongrel_cluster_ctl restart -c $CONF_DIR RETVAL=$? ;; *) echo "Usage: mongrel_cluster {start|stop|restart}" exit 1 ;; esac exit $RETVAL
Version data entries
20 entries across 20 versions & 2 rubygems