Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: d8c41edc9b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 0.467 kb
#!/bin/bash -e
SERVICE_DIR=$(dirname $0)/service
PORT=$1
if [ -z "$PORT" ]; then
echo "usage: $0 port_number" >&2
exit 2
fi
NEW_SERVICE_DIR="$SERVICE_DIR/unicorn-$PORT"
if [ ! -e "$NEW_SERVICE_DIR" ]; then
mkdir -p "$NEW_SERVICE_DIR"
ln -s ../../unicorn-run $NEW_SERVICE_DIR/run
ln -s ../../check-port $NEW_SERVICE_DIR/check
echo "created unicorn service $NEW_SERVICE_DIR"
else
echo "unicorn service $NEW_SERVICE_DIR already exists" >&2
exit 1
fi
Jump to Line
Something went wrong with that request. Please try again.