Sha256: db1327092cff3243e5b46772f4ccef29fbf58ba3be6feb7ac57cfbf4b7a20bd8
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
#! /bin/sh ARGV="$@" case $ARGV in start) /usr/sbin/httpd -d `pwd` -f conf/apache.conf ruby -C../../.. nitro/bin/cluster.rb --daemon ruby -C.. simple/app.rb --start # --daemon ERROR=$? ;; restart) # restart appserver only! export ASPID= `ps ax | grep app.rb | grep ruby | cut -d" " -f1` if [ -n "$ASPID" ]; then echo $ASPID kill -9 $ASPID fi ruby -C.. simple/app.rb --restart # --daemon ERROR=$? ;; stop) killall -9 ruby httpd ERROR=$? ;; *) echo "NOP" ERROR=$? esac exit $ERROR
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.1.2 | examples/simple/ctl |