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 / check-port
100755 4 lines (3 sloc) 0.08 kb
1
2
3
4
#!/bin/sh -e
PORT=$(basename $(pwd)|awk -F- '{print $2}')
nc -z localhost $PORT