Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: d8c41edc9b
Fetching contributors…

Cannot retrieve contributors at this time

executable file 22 lines (17 sloc) 0.47 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/thin-$PORT"
if [ ! -e "$NEW_SERVICE_DIR" ]; then
mkdir -p "$NEW_SERVICE_DIR"
ln -s ../../memcached-run $NEW_SERVICE_DIR/run
ln -s ../../check-port $NEW_SERVICE_DIR/check
echo "created memcached service $NEW_SERVICE_DIR"
else
echo "memcached service $NEW_SERVICE_DIR already exists" >&2
exit 1
fi
Jump to Line
Something went wrong with that request. Please try again.