Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 22 lines (17 sloc) 0.455 kB
d8c41ed @purcell Explicitly use bash for all 'run' scripts, to prevent issues with rvm…
authored
1 #!/bin/bash -e
fd94b77 @purcell Add support for 'thin' as an alternative to mongrel
authored
2
3 SERVICE_DIR=$(dirname $0)/service
4 PORT=$1
5
6 if [ -z "$PORT" ]; then
7 echo "usage: $0 port_number" >&2
8 exit 2
9 fi
10
11 NEW_SERVICE_DIR="$SERVICE_DIR/thin-$PORT"
12
13 if [ ! -e "$NEW_SERVICE_DIR" ]; then
14 mkdir -p "$NEW_SERVICE_DIR"
15 ln -s ../../thin-run $NEW_SERVICE_DIR/run
0848f46 @purcell Use check-port to test for readiness of thin too
authored
16 ln -s ../../check-port $NEW_SERVICE_DIR/check
fd94b77 @purcell Add support for 'thin' as an alternative to mongrel
authored
17 echo "created thin service $NEW_SERVICE_DIR"
18 else
19 echo "thin service $NEW_SERVICE_DIR already exists" >&2
20 exit 1
21 fi
Something went wrong with that request. Please try again.