Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Load config from a path

#29

In Mongrel there is the possibility to load multiple config files from a path.

In thin we need to specify each file, and in a webserver with multiple sites is not so good.

Now in my production env i make a service for start|restart|stop all mongrel servers.

Is possible do the same thing for thin?

CONF_DIR=/etc/mongrel_cluster

RETVAL=0

  1. Gracefully exit if the controller is missing.

which mongrel_cluster_ctl >/dev/null || exit 0

  1. 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

Reported by DAddYE · February 1st, 2008 @ 03:55 AM

State: invalid
Milestone: 0.7.0
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • State changed from new to open
    • Milestone set to 0.7.0

    February 1st, 2008 @ 10:13 AM

  2. macournoyer
    macournoyer
    • State changed from open to invalid

    February 6th, 2008 @ 12:25 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.