public
Description: Run rails applications reliably as runit services
Homepage: http://www.sanityinc.com/
Clone URL: git://github.com/purcell/rails-runit.git
Click here to lend your support to: rails-runit and make a donation at www.pledgie.com !
rails-runit / add-ferret-server
100755 15 lines (11 sloc) 0.355 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e
 
SERVICE_DIR=$(dirname $0)/service
 
NEW_SERVICE_DIR="$SERVICE_DIR/ferret-server"
 
if [ ! -e "$NEW_SERVICE_DIR" ]; then
mkdir -p "$NEW_SERVICE_DIR"
  ln -s ../../ferret-server-run $NEW_SERVICE_DIR/run
  echo "created ferret-server service $NEW_SERVICE_DIR"
else
echo "ferret-server service $NEW_SERVICE_DIR already exists" >&2
  exit 1
fi